feat(nvim): add keybinding to toggle inlay hints

This commit is contained in:
Price Hiller 2023-08-10 23:40:48 -05:00
parent c4a2a8ef0e
commit 93c933d172
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -102,6 +102,11 @@ vim.keymap.set("n", "<leader>lt", function()
end, {
desc = "LSP: Toggle Diagnostic Style",
})
vim.keymap.set("n", "<leader>lT", function()
vim.lsp.inlay_hint(0, nil)
end, {
desc = "LSP: Toggle Inlay Hints",
})
-- Formatter
vim.keymap.set("n", "<leader>nf", ":Neoformat<CR>", { silent = true, desc = "Neoformat" })