Fix things

This commit is contained in:
Martin Pander
2026-02-10 22:22:54 +01:00
parent 4460f57073
commit 9b0b1f76f9

View File

@@ -133,7 +133,7 @@ vim.api.nvim_create_user_command('TrimWhiteSpace', function()
vim.cmd('%s/\\s\\+$//e') vim.cmd('%s/\\s\\+$//e')
end, {}) end, {})
local function ToggleDiagnostics() function ToggleDiagnostics()
vim.diagnostic.enable(not vim.diagnostic.is_enabled()) vim.diagnostic.enable(not vim.diagnostic.is_enabled())
if vim.diagnostic.is_enabled() then if vim.diagnostic.is_enabled() then
print("Diagnostics enabled") print("Diagnostics enabled")