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 rrcomtech committed Dec 11, 2024
1 parent dc6158a commit 7ed4db9
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 @@ -544,7 +544,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 7ed4db9

Please sign in to comment.