|
|
@ -46,7 +46,7 @@ function Popup:open(config)
|
|
|
|
relative = 'editor',
|
|
|
|
relative = 'editor',
|
|
|
|
row = vim.go.lines - vim.go.cmdheight - 1,
|
|
|
|
row = vim.go.lines - vim.go.cmdheight - 1,
|
|
|
|
style = 'minimal',
|
|
|
|
style = 'minimal',
|
|
|
|
width = 1
|
|
|
|
width = 1,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -55,6 +55,9 @@ function Popup:open(config)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
self.window = vim.api.nvim_open_win(self.buffer, false, config)
|
|
|
|
self.window = vim.api.nvim_open_win(self.buffer, false, config)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- HACK: the window always pops up with the wrong width, but this makes it work :shrug:
|
|
|
|
|
|
|
|
vim.api.nvim_win_set_width(self.window, config.width)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
--- display `input_bytes` in `self.buffer`
|
|
|
|
--- display `input_bytes` in `self.buffer`
|
|
|
|