keyind to toggle lsp diagnostic virtual text
This commit is contained in:
parent
91e4921619
commit
3b5da664ee
1 changed files with 8 additions and 0 deletions
|
|
@ -49,6 +49,14 @@ end
|
|||
|
||||
s("n", "<leader>tw", "<cmd> set wrap! <cr>", { desc = "toggle line wrap" })
|
||||
|
||||
local toggle_lsp_virtual_text = function ()
|
||||
vim.diagnostic.config({
|
||||
virtual_text = not vim.diagnostic.config().virtual_text
|
||||
})
|
||||
end
|
||||
s("n", "<leader>tv", toggle_lsp_virtual_text, { desc = "toggle virtual text for diagnostics" })
|
||||
|
||||
|
||||
function copy_filename_and_line ()
|
||||
local filename = vim.fn.expand("%:t")
|
||||
local line = vim.fn.line(".")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue