Skip to content

Commit 6bbd4c0

Browse files
VlaDexaeunmann
authored andcommitted
Fix deprecation notice of inlay hints (nvim-lua#873)
1 parent c7dadc4 commit 6bbd4c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ require('lazy').setup({
539539
-- This may be unwanted, since they displace some of your code
540540
if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
541541
map('<leader>th', function()
542-
vim.lsp.inlay_hint.enable(0, not vim.lsp.inlay_hint.is_enabled())
542+
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
543543
end, '[T]oggle Inlay [H]ints')
544544
end
545545
end,

0 commit comments

Comments
 (0)