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.
my-nvim-lua/lua/spike/diagnostics.lua

20 lines
294 B
Lua

M = {}
M.shown = true
-- toggle diagnostics with show/hide
M.toggle = function ()
if M.shown then
M.shown = false
return vim.diagnostic.hide()
end
M.shown = true
vim.diagnostic.show()
end
-- my customized attach
-- M.custom_attach = function(client, bufnr)
-- end
return M