diff options
Diffstat (limited to 'lua/lspconfig/ui/windows.lua')
| -rw-r--r-- | lua/lspconfig/ui/windows.lua | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lua/lspconfig/ui/windows.lua b/lua/lspconfig/ui/windows.lua index a9bd820f..51c8fae9 100644 --- a/lua/lspconfig/ui/windows.lua +++ b/lua/lspconfig/ui/windows.lua @@ -1,4 +1,4 @@ --- The following is extracted and modified from popup.nvim by +-- The following is extracted and modified from plenary.vnim by -- TJ Devries. It is not a stable API, and is expected to change -- local function apply_defaults(original, defaults) @@ -40,12 +40,10 @@ function win_float.default_opts(options) width = width, height = height, style = 'minimal', - border = 'rounded', } return opts end - --- Create window that takes up certain percentags of the current screen. --- --- Works regardless of current buffers, tabs, splits, etc. @@ -92,6 +90,16 @@ function win_float.percentage_range_window(col_range, row_range, options) win_opts.col = math.floor(vim.o.columns * col_start_percentage) win_opts.width = math.floor(vim.o.columns * width_percentage) + win_opts.border = { + { ' ', 'NormalFloat' }, + { ' ', 'NormalFloat' }, + { ' ', 'NormalFloat' }, + { ' ', 'NormalFloat' }, + { ' ', 'NormalFloat' }, + { ' ', 'NormalFloat' }, + { ' ', 'NormalFloat' }, + { ' ', 'NormalFloat' }, + } local bufnr = options.bufnr or vim.api.nvim_create_buf(false, true) local win_id = vim.api.nvim_open_win(bufnr, true, win_opts) |
