summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/lspsaga.lua
blob: 6b127ce08d0d79fde763e5b1be7ebe8f56f52265 (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
39
40
41
42
43
44
45
46
return {
    -- TODO: see what I don't need from here
    -- maybe I can just fork the renaming and change
    -- it a bit to my linking?
    -- 'nvimdev/lspsaga.nvim',
    'Kyren223/lspsaga.nvim',
    dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' },
    event = 'LspAttach',
    opts = {
        ui = {
            border = 'rounded',
            foldericon = false,
            title = false,
            kind = nil,
        },
        diagnostic = {
            show_layout = 'float',
            keys = {
                exec_action = 'o',
                quit = 'q',
                toggle_or_jump = '<CR>',
                quit_in_show = { 'q', '<ESC>' },
            },
        },
        code_action = { show_preview = false },
        lightbulb = { enable = false },
        rename = {
            pre_hook = function()
                pcall(function()
                    vim.cmd('IlluminateToggle')
                end)
            end,
            post_hook = function()
                pcall(function()
                    vim.cmd('IlluminateToggle')
                end)
            end,
            keys = {
                quit = '<C-c>',
                exec = '<CR>',
                select = 'x',
            },
        },
        symbol_in_winbar = { enable = false },
    },
}