diff --git a/lua/keymaps.lua b/lua/keymaps.lua index fe104a6..721fd43 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -35,4 +35,10 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the upper win -- Toggling word wrap on/off vim.keymap.set('n', 'tw', 'set wrap!', { desc = 'Toggle: [W]ord wrapping' }) +-- Inline Diagnostic display toggling on/off +vim.keymap.set('n', 'tn', function() + -- vim.diagnostic.config { virtual_text = not vim.diagnostic.config().virtual_text } + vim.diagnostic.enable(not vim.diagnostic.is_enabled()) +end, { desc = 'Toggle: I[n]line Diagnostics' }) + -- vim: ts=2 sts=2 sw=2 et