feat(nvim): keymap for toggling inlay hints

This commit is contained in:
Sergio Laín 2023-10-19 13:36:47 +02:00
parent f83063bedd
commit c2cc39d891
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -35,6 +35,12 @@ end, { desc = "Google" })
vim.keymap.set("x", "<leader>?", function()
google(vim.fn.getreg("g"), false)
end, { desc = "Google" })
if vim.lsp.inlay_hint then
vim.keymap.set("n", "<leader>uh", function()
vim.lsp.inlay_hint(0, nil)
end, { desc = "Toggle Inlay Hints" })
end
-- map(
-- "n",
-- "<leader>xs",