From c2cc39d89194466662521023275f4fd54d84a621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 19 Oct 2023 13:36:47 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20keymap=20for=20toggli?= =?UTF-8?q?ng=20inlay=20hints?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/config/keymaps.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index b3aa881f..2ede08cd 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -35,6 +35,12 @@ end, { desc = "Google" }) vim.keymap.set("x", "?", function() google(vim.fn.getreg("g"), false) end, { desc = "Google" }) + +if vim.lsp.inlay_hint then + vim.keymap.set("n", "uh", function() + vim.lsp.inlay_hint(0, nil) + end, { desc = "Toggle Inlay Hints" }) +end -- map( -- "n", -- "xs",