nvim: lsp: Inlay hints API has changed

This commit is contained in:
Sanchayan Maity 2024-04-19 09:18:44 +05:30
parent d1ab3d43d6
commit 5623d7c004
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -16,7 +16,7 @@ local peek_definition = function()
end
local inlay_hint_toggle = function()
vim.lsp.inlay_hint.enable(nil, not vim.lsp.inlay_hint.is_enabled())
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
end
_G.InlayHintToggle = inlay_hint_toggle
@ -242,7 +242,7 @@ local on_attach = function(client, bufnr)
end
if client.supports_method('textDocument/inlayHint') then
vim.lsp.inlay_hint.enable(bufnr, false)
vim.lsp.inlay_hint.enable(false)
end
end