mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-24 04:15:18 +00:00
lsp: fix deprecation warning in neovim 0.12
This commit is contained in:
parent
bd265fee7e
commit
b7250bde5d
2 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ in {
|
|||
default_on_attach(client, bufnr)
|
||||
|
||||
${optionalString cfg.inlayHints.enable ''
|
||||
if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
|
||||
if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
|
||||
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({ bufnr = bufnr }), { bufnr = bufnr })
|
||||
end
|
||||
''}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue