summaryrefslogtreecommitdiff
path: root/lua/lvim/lsp/config.lua
diff options
context:
space:
mode:
authorCPea <[email protected]>2023-04-10 02:05:20 +0700
committerCPea <[email protected]>2023-04-24 19:11:08 +0700
commit49e82310f72f6b0c62fa506761a005876f615b2e (patch)
tree3df337560c56ea23ea610e013f3f39a4a81976c4 /lua/lvim/lsp/config.lua
parent01a4abc0b31b2ee554cbf775c4a6e907e5dbd34d (diff)
refactor(lsp)!: deprecate `lvim.lsp.diagnostics`
Diffstat (limited to 'lua/lvim/lsp/config.lua')
-rw-r--r--lua/lvim/lsp/config.lua12
1 files changed, 5 insertions, 7 deletions
diff --git a/lua/lvim/lsp/config.lua b/lua/lvim/lsp/config.lua
index de36c47f..c9834f26 100644
--- a/lua/lvim/lsp/config.lua
+++ b/lua/lvim/lsp/config.lua
@@ -79,13 +79,11 @@ return {
},
document_highlight = false,
code_lens_refresh = true,
+ ---@usage list of the keys to override behavior of the handlers
handlers = {
- ---@usage list of the keys to override behavior of the handlers
- override_config = {
- focusable = true,
- style = "minimal",
- border = "rounded",
- },
+ focusable = true,
+ style = "minimal",
+ border = "rounded",
},
on_attach_callback = nil,
on_init_callback = nil,
@@ -105,7 +103,7 @@ return {
["gs"] = { "<cmd>lua vim.lsp.buf.signature_help()<cr>", "show signature help" },
["gl"] = {
function()
- local config = lvim.lsp.diagnostics.float
+ local config = vim.diagnostic.config().float
config.scope = "line"
vim.diagnostic.open_float(0, config)
end,