Skip to content

Commit 75fa2b4

Browse files
VlaDexaorhosko
authored andcommitted
Fix deprecation notice of inlay hints (nvim-lua#873)
1 parent 36c2ca4 commit 75fa2b4

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
@@ -445,7 +445,7 @@ require('lazy').setup({
445445
-- This may be unwanted, since they displace some of your code
446446
if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
447447
map('<leader>th', function()
448-
vim.lsp.inlay_hint.enable(0, not vim.lsp.inlay_hint.is_enabled())
448+
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
449449
end, '[T]oggle Inlay [H]ints')
450450
end
451451
end,

0 commit comments

Comments
 (0)