aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/lspsaga.lua
blob: b87260a653fd156591fbee63763a72ca3f0d9cff (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
27
28
29
30
31
32
33
34
35
36
37
38
local config = function()
  vim.diagnostic.config({
    severity_sort = true,
  })
  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 = config,
  dependencies = {
    "nvim-treesitter/nvim-treesitter", -- optional
    "nvim-tree/nvim-web-devicons",     -- optional
  },
}