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 Apr 22, 2024
1 parent 2e68a2c commit f92fb11
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 @@ -531,7 +531,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 f92fb11

Please sign in to comment.