mirror of
https://github.com/pnx/dotfiles
synced 2026-06-17 03:30:01 +02:00
nvim: update lsp config to nvim 0.12
This commit is contained in:
parent
0423818458
commit
d21bef893e
21 changed files with 91 additions and 87 deletions
|
|
@ -63,15 +63,15 @@ local config = function(_, opts)
|
|||
client.server_capabilities,
|
||||
server_opts.server_capabilities or {})
|
||||
|
||||
if server_opts.inlay_hints.enabled and client.supports_method("textDocument/inlayHint") then
|
||||
if server_opts.inlay_hints.enabled and client:supports_method("textDocument/inlayHint") then
|
||||
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
|
||||
end
|
||||
|
||||
if server_opts.codelens.enabled and client.supports_method("textDocument/codeLens") then
|
||||
utils.codelens(augroup, bufnr)
|
||||
if server_opts.codelens.enabled and client:supports_method("textDocument/codeLens") then
|
||||
vim.lsp.codelens.enable(true, { bufnr = bufnr })
|
||||
end
|
||||
|
||||
if server_opts.document_highlight.enabled and client.supports_method("textDocument/documentHighlight") then
|
||||
if server_opts.document_highlight.enabled and client:supports_method("textDocument/documentHighlight") then
|
||||
utils.document_highlight(bufnr)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue