diff options
| author | mirenn <me@mirenn.dev> | 2024-10-16 21:45:26 +0200 |
|---|---|---|
| committer | mirenn <me@mirenn.dev> | 2024-10-16 21:45:26 +0200 |
| commit | 48619661ef8fb16704d8beff25e5dfce7b86c6eb (patch) | |
| tree | 0b64ae82383491383be6570cfd8198db9f765a01 /nvim/lua/plugins/lspsaga.lua | |
| parent | 95b50d1e9d6d393e343e1efb94cc0cb4071cd4af (diff) | |
| download | dotfiles-48619661ef8fb16704d8beff25e5dfce7b86c6eb.tar.gz dotfiles-48619661ef8fb16704d8beff25e5dfce7b86c6eb.zip | |
nvim change
installed neorg
removed trouble
modified lspsaga
Diffstat (limited to 'nvim/lua/plugins/lspsaga.lua')
| -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 |
