mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +02:00
feat(lsp): document highlights now use native lsp. vim-illuminate
is available as an extra
This commit is contained in:
parent
960ec8079b
commit
cc99b219de
5 changed files with 125 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue