feat: add toggle to show/hide diagnostics

This commit is contained in:
Sangho Lee 2025-06-24 22:26:42 +09:00 committed by Ori Perry
parent 7cc245ecaf
commit e244058f03
1 changed files with 3 additions and 0 deletions

View File

@ -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