feat(lsp): document highlights now use native lsp. vim-illuminate is available as an extra

This commit is contained in:
Folke Lemaitre
2024-05-17 09:12:45 +02:00
parent 960ec8079b
commit cc99b219de
5 changed files with 125 additions and 41 deletions

View File

@ -46,6 +46,10 @@ return {
codelens = {
enabled = false,
},
-- Enable lsp cursor word highlighting
document_highlight = {
enabled = true,
},
-- add any global capabilities here
capabilities = {},
-- options for vim.lsp.buf.format
@ -128,6 +132,8 @@ return {
return ret
end
LazyVim.lsp.words.setup(opts.document_highlight)
-- diagnostics signs
if vim.fn.has("nvim-0.10.0") == 0 then
if type(opts.diagnostics.signs) ~= "boolean" then