Fix things
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user