lsplines fix

This commit is contained in:
Christian Nieves
2023-11-05 22:11:41 -06:00
parent 9ddc25c39d
commit 6157a013dc
9 changed files with 78 additions and 87 deletions

View File

@ -1,21 +1,20 @@
return {
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
event = "VimEnter",
name = "lsp_lines.nvim",
config = function()
vim.diagnostic.config({
-- virtual_lines = { only_current_line = true },
virtual_lines = true,
update_on_insert = false,
virtual_text = false,
})
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()
require("lsp_lines").toggle()
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",
},