diff --git a/plugin/diagswap.lua b/plugin/diagswap.lua new file mode 100644 index 0000000..023bbf6 --- /dev/null +++ b/plugin/diagswap.lua @@ -0,0 +1,8 @@ +local state = true + +local function swap() + vim.diagnostic.config({ virtual_text = not state, virtual_lines = state }) + state = not state +end + +vim.keymap.set("n", "dt", swap)