From 93c933d1721c677ff3a4c8e479ea86b6d6c11ae3 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 10 Aug 2023 23:40:48 -0500 Subject: [PATCH] feat(nvim): add keybinding to toggle inlay hints --- dots/.config/nvim/lua/plugins/mappings.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dots/.config/nvim/lua/plugins/mappings.lua b/dots/.config/nvim/lua/plugins/mappings.lua index d4505224..70f811f2 100755 --- a/dots/.config/nvim/lua/plugins/mappings.lua +++ b/dots/.config/nvim/lua/plugins/mappings.lua @@ -102,6 +102,11 @@ vim.keymap.set("n", "lt", function() end, { desc = "LSP: Toggle Diagnostic Style", }) +vim.keymap.set("n", "lT", function() + vim.lsp.inlay_hint(0, nil) +end, { + desc = "LSP: Toggle Inlay Hints", +}) -- Formatter vim.keymap.set("n", "nf", ":Neoformat", { silent = true, desc = "Neoformat" })