more diag stuff
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"Maan2003/lsp_lines.nvim",
|
||||
event = "VimEnter",
|
||||
event = { "LspAttach" },
|
||||
name = "lsp_lines.nvim",
|
||||
config = function()
|
||||
local signs = {
|
||||
@ -19,6 +20,7 @@ return {
|
||||
|
||||
vim.schedule(function()
|
||||
vim.diagnostic.config({
|
||||
severity_sort = true,
|
||||
virtual_text = false,
|
||||
virtual_improved = {
|
||||
current_line = "hide",
|
||||
@ -33,9 +35,8 @@ return {
|
||||
function()
|
||||
local new_value = not vim.diagnostic.config().virtual_lines.only_current_line
|
||||
vim.diagnostic.config({
|
||||
virtual_text = not new_value,
|
||||
virtual_improved = {
|
||||
current_line = new_value and "hide" or "show",
|
||||
current_line = new_value and "default" or "hide",
|
||||
},
|
||||
virtual_lines = { only_current_line = new_value },
|
||||
})
|
||||
@ -44,6 +45,7 @@ return {
|
||||
desc = "Toggle LSP Lines",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"luozhiya/lsp-virtual-improved.nvim",
|
||||
event = { "LspAttach" },
|
||||
@ -51,15 +53,9 @@ return {
|
||||
require("lsp-virtual-improved").setup()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"dgagn/diagflow.nvim",
|
||||
opts = {
|
||||
toggle_event = { "InsertEnter" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/trouble.nvim",
|
||||
event = "VimEnter",
|
||||
event = { "LspAttach" },
|
||||
config = function()
|
||||
-- Diagnostics
|
||||
require("trouble").setup({
|
||||
|
Reference in New Issue
Block a user