1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00

nvim: update lsp config to nvim 0.12

This commit is contained in:
Henrik Hautakoski 2026-04-14 04:50:17 +02:00
parent 0423818458
commit d21bef893e
21 changed files with 91 additions and 87 deletions

View file

@ -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