diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | lua/lvim/config/init.lua | 5 | ||||
| -rw-r--r-- | lua/lvim/lsp/config.lua | 6 | ||||
| -rw-r--r-- | lua/lvim/lsp/handlers.lua | 10 | 
4 files changed, 14 insertions, 8 deletions
| @@ -129,6 +129,7 @@ lvim.plugins = {  ## Breaking changes  - `lvim.lang.FOO` is no longer supported. Refer to <https://www.lunarvim.org/languages> for up-to-date instructions. +- `lvim.lsp.popup_border` has been deprecated in favor of `lvim.lsp.float.border` and `lvim.lsp.diagnostics.float.border`.  ## Resources diff --git a/lua/lvim/config/init.lua b/lua/lvim/config/init.lua index 9b6d36f0..ed01c4c8 100644 --- a/lua/lvim/config/init.lua +++ b/lua/lvim/config/init.lua @@ -66,6 +66,11 @@ local function handle_deprecated_settings()        deprecation_notice(string.format("lvim.lang.%s", lang))      end    end + +  -- lvim.lsp.popup_border +  if vim.tbl_contains(vim.tbl_keys(lvim.lsp), "popup_border") then +    deprecation_notice "lvim.lsp.popup_border" +  end  end  --- Override the configuration with a user provided one diff --git a/lua/lvim/lsp/config.lua b/lua/lvim/lsp/config.lua index 5cfe5b1f..f4d084be 100644 --- a/lua/lvim/lsp/config.lua +++ b/lua/lvim/lsp/config.lua @@ -32,7 +32,11 @@ return {    },    document_highlight = true,    code_lens_refresh = true, -  popup_border = "single", +  float = { +    focusable = false, +    style = "minimal", +    border = "rounded", +  },    on_attach_callback = nil,    on_init_callback = nil,    automatic_servers_installation = true, diff --git a/lua/lvim/lsp/handlers.lua b/lua/lvim/lsp/handlers.lua index 45f73e91..bbadf25a 100644 --- a/lua/lvim/lsp/handlers.lua +++ b/lua/lvim/lsp/handlers.lua @@ -28,15 +28,11 @@ function M.setup()        end        vim.lsp.diagnostic.display(diagnostics, bufnr, client_id, config)      end +  end -    vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { -      border = lvim.lsp.popup_border, -    }) +  vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, lvim.lsp.float) -    vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { -      border = lvim.lsp.popup_border, -    }) -  end +  vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, lvim.lsp.float)  end  function M.show_line_diagnostics() | 
