You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
M = {}
|
|
M.shown = true
|
|
|
|
-- toggle diagnostics with show/hide
|
|
M.toggle_diagnostics = function ()
|
|
if M.shown then
|
|
M.shown = false
|
|
return vim.diagnostic.hide()
|
|
end
|
|
vim.diagnostic.show()
|
|
M.shown = true
|
|
end
|
|
|
|
return M
|