diff options
author | CPea <[email protected]> | 2023-04-10 02:05:20 +0700 |
---|---|---|
committer | CPea <[email protected]> | 2023-04-24 19:11:08 +0700 |
commit | 49e82310f72f6b0c62fa506761a005876f615b2e (patch) | |
tree | 3df337560c56ea23ea610e013f3f39a4a81976c4 /lua/lvim/lsp/config.lua | |
parent | 01a4abc0b31b2ee554cbf775c4a6e907e5dbd34d (diff) |
refactor(lsp)!: deprecate `lvim.lsp.diagnostics`
Diffstat (limited to 'lua/lvim/lsp/config.lua')
-rw-r--r-- | lua/lvim/lsp/config.lua | 12 |
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, |