Files
dotfiles/vim/.vim/lua/plugins/lsp_lines.lua
Christian Nieves 6157a013dc lsplines fix
2023-11-06 17:11:53 +00:00

23 lines
602 B
Lua

return {
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
event = "VimEnter",
name = "lsp_lines.nvim",
config = function()
require("lsp_lines").setup()
vim.diagnostic.config({ virtual_text = false })
vim.diagnostic.config({ virtual_lines = { highlight_whole_line = false, only_current_line = false } })
end,
keys = {
{
"<leader>l",
function()
local new_value = not vim.diagnostic.config().virtual_lines.only_current_line
vim.diagnostic.config({ virtual_lines = { only_current_line = new_value } })
return new_value
end,
desc = "Toggle LSP Lines",
},
},
}