From 98f7df1c0d8f4a9e33eaebc484f367bc34ff0434 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Sat, 29 Jun 2024 15:23:52 +0100 Subject: [PATCH] fix: keymapping for enabling inlay hints Fixed the command to enable/disable inlay hints --- nvim/lua/plugins/config/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/plugins/config/lsp.lua b/nvim/lua/plugins/config/lsp.lua index d718dec..8556378 100644 --- a/nvim/lua/plugins/config/lsp.lua +++ b/nvim/lua/plugins/config/lsp.lua @@ -41,7 +41,7 @@ vim.api.nvim_create_autocmd('LspAttach', { vim.keymap.set('n', 'dec', vim.lsp.buf.declaration, opts) if vim.lsp.inlay_hint then - vim.keymap.set('n', 'ih', function() vim.lsp.inlay_hint(0, nil) end, opts) + vim.keymap.set('n', 'ih', function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) end, opts) end --vim.keymap.set('n', '', vim.lsp.buf.signature_help, opts)