Skip to content

Commit c899a98

Browse files
VlaDexamonk3yd
authored andcommitted
Fix deprecation notice of inlay hints (nvim-lua#873)
1 parent 6c36f2a commit c899a98

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
@@ -603,7 +603,7 @@ require('lazy').setup({
603603
-- This may be unwanted, since they displace some of your code
604604
if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
605605
map('<leader>th', function()
606-
vim.lsp.inlay_hint.enable(0, not vim.lsp.inlay_hint.is_enabled())
606+
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
607607
end, '[T]oggle Inlay [H]ints')
608608
end
609609
end,

0 commit comments

Comments
 (0)