diff options
| author | eric.marin <maarin.eric@gmail.com> | 2024-10-16 21:45:26 +0200 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2024-10-16 21:45:26 +0200 |
| commit | b0cfdab1e93f660fda8f9398e30c9c996a1760f3 (patch) | |
| tree | 0b64ae82383491383be6570cfd8198db9f765a01 /nvim/lua/plugins/lspsaga.lua | |
| parent | ab2dadca189217eb152a2bd157c651e9e3f3145b (diff) | |
| download | dotfiles-b0cfdab1e93f660fda8f9398e30c9c996a1760f3.tar.gz dotfiles-b0cfdab1e93f660fda8f9398e30c9c996a1760f3.zip | |
nvim change
installed neorg
removed trouble
modified lspsaga
Diffstat (limited to '')
| -rw-r--r-- | nvim/lua/plugins/lspsaga.lua | 43 |
1 files changed, 26 insertions, 17 deletions
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 = "<Enter>" + } + }, + finder = { + keys = { + toggle_or_open = "<Enter>", + shuttle = "<Tab>", + } + }, + 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 = "<C-k>", next = "<C-j>" }, - -- use enter to open file with finder - finder_action_keys = { - open = "<Enter>" - }, - -- use enter to open file with definition preview - definition_action_keys = { - edit = "<Enter>" - }, - ui = { - code_action = "", - }, - }) - end, + config = config, dependencies = { "nvim-treesitter/nvim-treesitter", -- optional "nvim-tree/nvim-web-devicons", -- optional |
