Skip to content

Commit e524c59

Browse files
VlaDexadarren-omori
authored andcommitted
Fix deprecation notice of inlay hints (nvim-lua#873)
1 parent 2091c57 commit e524c59

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

0 commit comments

Comments
 (0)