feat: add toggle to show/hide diagnostics
This commit is contained in:
parent
7cc245ecaf
commit
e244058f03
3
init.lua
3
init.lua
|
|
@ -559,6 +559,9 @@ require('lazy').setup({
|
|||
-- For example, in C this would take you to the header.
|
||||
map('grD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||
|
||||
-- Toggle to show/hide diagnostic messages
|
||||
map('<leader>td', function() vim.diagnostic.enable(not vim.diagnostic.is_enabled()) end, '[T]oggle [D]iagnostics')
|
||||
|
||||
-- The following two autocommands are used to highlight references of the
|
||||
-- word under your cursor when your cursor rests there for a little while.
|
||||
-- See `:help CursorHold` for information about when this is executed
|
||||
|
|
|
|||
Loading…
Reference in New Issue