create keymap for toggling inlay hints

This commit is contained in:
Akulij 2025-05-03 16:24:37 +03:00
parent 8382ca9683
commit ffcb61f16c

View File

@ -136,6 +136,9 @@ cmp.setup {
} }
vim.keymap.set('n', "gd", vim.lsp.buf.definition, { silent = true }) vim.keymap.set('n', "gd", vim.lsp.buf.definition, { silent = true })
vim.keymap.set('n', "ca", vim.lsp.buf.code_action, { silent = true }) vim.keymap.set('n', "ca", vim.lsp.buf.code_action, { silent = true })
vim.keymap.set('n', "<leader>ih", function ()
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
end, { silent = true })
-- Show line diagnostics automatically in hover window -- Show line diagnostics automatically in hover window
vim.o.updatetime = 250 vim.o.updatetime = 250