Skip to content

Commit f5a9668

Browse files
committed
docs: update hover and signature_help configuration location
1 parent 10cadb1 commit f5a9668

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ local opts = {
110110
},
111111
},
112112
},
113+
defaults = {
114+
hover = { border = "rounded", silent = true } -- customize lsp hover window
115+
signature_help = false, -- disable any default customizations
116+
},
113117
-- Configuration of LSP file operation functionality
114118
file_operations = {
115119
-- the timeout when executing LSP client operations
@@ -163,8 +167,7 @@ local opts = {
163167
},
164168
-- Configure `vim.lsp.handlers`
165169
lsp_handlers = {
166-
["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded", silent = true }),
167-
["textDocument/signatureHelp"] = false, -- set to false to disable any custom handlers
170+
["textDocument/publishDiagnostics"] = function(...) end, -- customize a handler with a custom function
168171
},
169172
-- Configuration of mappings added when attaching a language server during the core `on_attach` function
170173
-- The first key into the table is the vim map mode (`:h map-modes`), and the value is a table of entries to be passed to `vim.keymap.set` (`:h vim.keymap.set`):

0 commit comments

Comments
 (0)