From b0cfdab1e93f660fda8f9398e30c9c996a1760f3 Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Wed, 16 Oct 2024 21:45:26 +0200 Subject: nvim change installed neorg removed trouble modified lspsaga --- nvim/lua/plugins/lspsaga.lua | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) (limited to 'nvim/lua/plugins/lspsaga.lua') diff --git a/nvim/lua/plugins/lspsaga.lua b/nvim/lua/plugins/lspsaga.lua index e486799..d6faadc 100644 --- a/nvim/lua/plugins/lspsaga.lua +++ b/nvim/lua/plugins/lspsaga.lua @@ -1,24 +1,33 @@ +local config = function() + require("lspsaga").setup({ + ui = { + code_action = "", + }, + outline = { + keys = { + toggle_or_jump = "" + } + }, + finder = { + keys = { + toggle_or_open = "", + shuttle = "", + } + }, + diagnostic = { + diagnostic_only_current = true, + } + }) + vim.diagnostic.config({ + virtual_text = false + }) +end + return { "nvimdev/lspsaga.nvim", lazy = true, event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - config = function() - require("lspsaga").setup({ - -- keybinds for navigation in lspsaga window - move_in_saga = { prev = "", next = "" }, - -- use enter to open file with finder - finder_action_keys = { - open = "" - }, - -- use enter to open file with definition preview - definition_action_keys = { - edit = "" - }, - ui = { - code_action = "", - }, - }) - end, + config = config, dependencies = { "nvim-treesitter/nvim-treesitter", -- optional "nvim-tree/nvim-web-devicons", -- optional -- cgit v1.2.3