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 rodolfolabiapari committed Apr 27, 2024
1 parent 5f72af0 commit d43f64a
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 @@ -542,7 +542,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 d43f64a

Please sign in to comment.