aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/lspsaga.lua
blob: e486799e206e5d05dcf36620a2713362d3b6b508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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,
  dependencies = {
    "nvim-treesitter/nvim-treesitter", -- optional
    "nvim-tree/nvim-web-devicons",     -- optional
  },
}