From 8c736d16b64b0f721e35877a7f82eff6441d09ad Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Tue, 17 Jun 2025 10:32:10 +0300 Subject: [PATCH] feat(lsp): keymap to toggle inlay hints --- config/plugins/lsp.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/plugins/lsp.nix b/config/plugins/lsp.nix index 243cd8a..8a7bf9a 100644 --- a/config/plugins/lsp.nix +++ b/config/plugins/lsp.nix @@ -42,4 +42,12 @@ }; fidget.enable = true; }; + + keymaps = [ + { + action = "lua vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())"; + key = "ti"; + options.desc = "toggle inlay hints"; + } + ]; } -- 2.44.1