diff options
| author | kylo252 <[email protected]> | 2021-12-23 10:03:15 +0100 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-23 10:03:15 +0100 | 
| commit | 55934998286357e5cba13848720c25494051510f (patch) | |
| tree | a98c25da2d55f5f75c7326bac2a8c2068568c420 /lua | |
| parent | a3cf3b1f2a6f2fce80833753a133c9983e56d4e2 (diff) | |
fix(lsp): set the handlers opts for v0.6 as well (#2109)
Diffstat (limited to 'lua')
| -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 | 
3 files changed, 13 insertions, 8 deletions
| 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() | 
