Compare commits
2 Commits
main
...
cdc02fc3e4
| Author | SHA1 | Date | |
|---|---|---|---|
|
cdc02fc3e4
|
|||
|
f92f71ec39
|
@@ -32,6 +32,9 @@ vim.o.expandtab = true
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
|
||||
-- diagnostic show virtual text
|
||||
vim.diagnostic.config({ virtual_text = true })
|
||||
|
||||
-- osc52 escape codes copy
|
||||
local function ocs52_paste_fail()
|
||||
vim.notify("can't paste via osc52", vim.log.levels.WARN)
|
||||
|
||||
8
plugin/diagswap.lua
Normal file
8
plugin/diagswap.lua
Normal 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)
|
||||
Reference in New Issue
Block a user