Skip to content

Commit 8018f0b

Browse files
VlaDexaangerborn
authored andcommitted
Fix deprecation notice of inlay hints (nvim-lua#873)
1 parent a68cb44 commit 8018f0b

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
@@ -531,7 +531,7 @@ require('lazy').setup({
531531
-- This may be unwanted, since they displace some of your code
532532
if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
533533
map('<leader>th', function()
534-
vim.lsp.inlay_hint.enable(0, not vim.lsp.inlay_hint.is_enabled())
534+
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
535535
end, '[T]oggle Inlay [H]ints')
536536
end
537537
end,

0 commit comments

Comments
 (0)