nvim: Remap diagnostic toggling
This commit is contained in:
parent
20741b3ca0
commit
5679887739
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
||||||
map("n", "<localleader>lI", function()
|
map("n", "<localleader>lI", function()
|
||||||
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
|
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
|
||||||
end, o({ desc = "Toggle inlay hints" }))
|
end, o({ desc = "Toggle inlay hints" }))
|
||||||
map("n", "<localleader>lD", function()
|
map("n", "<localleader>lE", function()
|
||||||
vim.diagnostic.enable(not vim.diagnostic.is_enabled())
|
vim.diagnostic.enable(not vim.diagnostic.is_enabled())
|
||||||
end, o({ desc = "Toggle Diagnostics" }))
|
end, o({ desc = "Toggle Diagnostics" }))
|
||||||
-- FIXME: Will be re-enabled with insert-mode autocmd above
|
-- FIXME: Will be re-enabled with insert-mode autocmd above
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue