Compare commits

...

2 Commits

2 changed files with 11 additions and 0 deletions

View File

@@ -32,6 +32,9 @@ vim.o.expandtab = true
vim.o.ignorecase = true vim.o.ignorecase = true
vim.o.smartcase = true vim.o.smartcase = true
-- diagnostic show virtual text
vim.diagnostic.config({ virtual_text = true })
-- osc52 escape codes copy -- osc52 escape codes copy
local function ocs52_paste_fail() local function ocs52_paste_fail()
vim.notify("can't paste via osc52", vim.log.levels.WARN) vim.notify("can't paste via osc52", vim.log.levels.WARN)

8
plugin/diagswap.lua Normal file
View File

@@ -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", "<leader>dt", swap)