Something went wrong. Try again.
My own personal NeoVim configuration. Powered by vim.pack and lz.n
Something went wrong. Try again.
123456789101112131415161718192021local M = {}
local current = "virtual_lines"
local function apply() if current == "virtual_lines" then vim.diagnostic.config({ virtual_text = false, virtual_lines = true }) else vim.diagnostic.config({ virtual_lines = false, virtual_text = true }) endend
function M.toggle() current = current == "virtual_lines" and "virtual_text" or "virtual_lines" apply()end
apply()
return M