From ffcb61f16c2aeeb1a756755e8e1119aea7c7683b Mon Sep 17 00:00:00 2001 From: Akulij Date: Sat, 3 May 2025 16:24:37 +0300 Subject: [PATCH] create keymap for toggling inlay hints --- lua/plugins/lsp.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index b7abc51..70909ba 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -136,6 +136,9 @@ cmp.setup { } 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', "ih", function () + vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) +end, { silent = true }) -- Show line diagnostics automatically in hover window vim.o.updatetime = 250