summaryrefslogtreecommitdiff
path: root/lua/lvim/lsp/handlers.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2022-09-20 14:11:58 +0430
committerGitHub <[email protected]>2022-09-20 14:11:58 +0430
commit518b1d4167162a54a6e76784038d30191613b76d (patch)
tree6007451a5e1f77db9ee116ee1a262c8f0639115d /lua/lvim/lsp/handlers.lua
parent03ec31253fc868b3ab5a8217640ec04248ae0046 (diff)
Fix: make sure latest plugins are customizable (#3044)
* fix: make navim-navic configurable * fix: make sure vim-illuminate is configurable * fix: make sure theme is configurable * fix(ci): don't verify uninstalled plugins * refactor(lsp): add setup_document_symbols util * revert: keep onedarker on freeze branch * refactor(lsp): avoid duplicate hl autocmds Co-authored-by: kylo252 <[email protected]>
Diffstat (limited to 'lua/lvim/lsp/handlers.lua')
-rw-r--r--lua/lvim/lsp/handlers.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/lvim/lsp/handlers.lua b/lua/lvim/lsp/handlers.lua
index 45b1989d..81342885 100644
--- a/lua/lvim/lsp/handlers.lua
+++ b/lua/lvim/lsp/handlers.lua
@@ -12,6 +12,9 @@ function M.setup()
float = lvim.lsp.diagnostics.float,
}
vim.diagnostic.config(config)
+ if not lvim.builtin.illuminate.active then
+ vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, lvim.lsp.float)
+ end
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, lvim.lsp.float)
end