Added inline diagnostics toggle

This commit is contained in:
2026-01-22 16:50:39 +02:00
parent b5b012761a
commit c66b7a1760
5 changed files with 13 additions and 7 deletions
+8
View File
@@ -22,3 +22,11 @@ map("n", "<C-j>", "<C-w>j", { desc = "Down window" })
map("n", "<C-k>", "<C-w>k", { desc = "Up window" })
map("n", "<C-l>", "<C-w>l", { desc = "Right window" })
local diagnostics_visible = true
map("n", "<leader>td", function()
diagnostics_visible = not diagnostics_visible
vim.diagnostic.config({
virtual_text = diagnostics_visible,
})
end, { desc = "Toggle inline diagnostics" })