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 John Longanecker committed Jun 25, 2024
1 parent 1fa12b0 commit 7633d91
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 @@ -533,7 +533,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 7633d91

Please sign in to comment.