Skip to content

Commit

Permalink
Fix deprecation notice of inlay hints (nvim-lua#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
VlaDexa authored and hchienjo committed Oct 19, 2024
1 parent ac79833 commit ddd9e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ require('lazy').setup({
-- This may be unwanted, since they displace some of your code
if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
map('<leader>th', function()
vim.lsp.inlay_hint.enable(0, not vim.lsp.inlay_hint.is_enabled())
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
end, '[T]oggle Inlay [H]ints')
end
end,
Expand Down

0 comments on commit ddd9e78

Please sign in to comment.