From 3792509c86fe80f23914eee777e7da938bc9f5fd Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Fri, 23 Jun 2023 16:32:36 -0500 Subject: [PATCH] finally --- vim/.vim/lua/plugins/lsp_lines.lua | 15 ++++++++++----- vim/.vim/lua/plugins/trouble.lua | 7 ------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/vim/.vim/lua/plugins/lsp_lines.lua b/vim/.vim/lua/plugins/lsp_lines.lua index 28c619f..72f6253 100644 --- a/vim/.vim/lua/plugins/lsp_lines.lua +++ b/vim/.vim/lua/plugins/lsp_lines.lua @@ -1,18 +1,23 @@ return { url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim", name = "lsp_lines.nvim", - -- "ErichDonGubler/lsp_lines.nvim", lazy = false, config = function() + vim.diagnostic.config({ + virtual_lines = { only_current_line = true }, + + update_in_insert = true, + virtual_text = false, + }) + require("lsp_lines").setup() end, keys = { { "l", - ":lua require('lsp_lines').toggle()", - -- function() - -- require("lsp_lines").toggle() - -- end, + function() + require("lsp_lines").toggle() + end, desc = "Toggle LSP Lines", }, }, diff --git a/vim/.vim/lua/plugins/trouble.lua b/vim/.vim/lua/plugins/trouble.lua index 8655be4..6796bbe 100644 --- a/vim/.vim/lua/plugins/trouble.lua +++ b/vim/.vim/lua/plugins/trouble.lua @@ -2,13 +2,6 @@ return { "folke/trouble.nvim", event = "VimEnter", config = function() - vim.diagnostic.config({ - virtual_lines = true, - virtual_text = true, - severity_sort = true, - update_in_insert = true, - }) - -- Diagnostics require("trouble").setup({ signs = {