Fix deprecation notice of inlay hints

This commit is contained in:
Vladislav 2024-04-22 11:36:02 +02:00
parent 2e68a2c253
commit 3a73f50ffc
No known key found for this signature in database
GPG Key ID: 07A1CCBD643CA257
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ require('lazy').setup({
-- This may be unwanted, since they displace some of your code -- This may be unwanted, since they displace some of your code
if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
map('<leader>th', function() 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, '[T]oggle Inlay [H]ints')
end end
end, end,