mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/lsp: fix incorrect inlay_hint usage
The previous implementation used an outdated function signature, which no longer works. Switched to the correct usage as-per the docs.
This commit is contained in:
parent
4ab2b289b6
commit
01aa3d469e
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ in
|
|||
plugins.lsp.onAttach = mkIf cfg.inlayHints ''
|
||||
-- LSP Inlay Hints {{{
|
||||
if client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
|
||||
vim.lsp.inlay_hint.enable(bufnr, true)
|
||||
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
|
||||
end
|
||||
-- }}}
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue