[vim] Update API call that toggles visibility of inlay hints

This API is preferred as of some recent version of neovim.
This commit is contained in:
Eryn Wells 2024-08-03 09:12:48 -07:00
parent a4883068de
commit a0baeac863

View file

@ -50,7 +50,7 @@ local function set_up_local_lsp_mappings(buffer_number)
map('n', 'gi', vim.lsp.buf.implementation, options)
map('n', 'gK', vim.lsp.buf.signature_help, options)
map('n', '<C-i>', function()
vim.lsp.buf.inlay_hint.enable(buffer_number, not vim.lsp.inlay_hint.is_enabled())
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({}))
end, options)
map('n', '<leader>D', vim.lsp.buf.type_definition, options)
map('n', '<leader>rn', vim.lsp.buf.rename, options)