mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(toggle-diagnostics): revert to enable instead of status
This commit is contained in:
parent
88e75615b1
commit
2c067f8003
1 changed files with 3 additions and 3 deletions
|
|
@ -41,10 +41,10 @@ function M.number()
|
|||
end
|
||||
end
|
||||
|
||||
local status = vim.diagnostic.is_disabled()
|
||||
local enabled = not vim.diagnostic.is_disabled()
|
||||
function M.diagnostics()
|
||||
status = not status
|
||||
if not status then
|
||||
enabled = not enabled
|
||||
if enabled then
|
||||
vim.diagnostic.enable()
|
||||
Util.info("Enabled diagnostics", { title = "Diagnostics" })
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue