summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/edgy.lua
blob: 7f012458fa24ee9e96e982918b71f7b584d9204e (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
return {
    'folke/edgy.nvim',
    event = 'VeryLazy',
    opts = {
        bottom = {
            'Trouble',
            { ft = 'qf', title = 'QuickFix' },
            {
                ft = 'help',
                size = { height = 20 },
                filter = function(buf) -- only show help buffers
                    return vim.bo[buf].buftype == 'help'
                end,
            },
            { ft = 'spectre_panel', size = { height = 0.4 } },
        },
        left = {
            {
                title = 'Neo-Tree',
                ft = 'neo-tree',
                filter = function(buf)
                    return vim.b[buf].neo_tree_source == 'filesystem'
                end,
                size = { height = 0.5 },
            },
            {
                title = 'Neo-Tree Git',
                ft = 'neo-tree',
                filter = function(buf)
                    return vim.b[buf].neo_tree_source == 'git_status'
                end,
                pinned = true,
                open = 'Neotree position=right git_status',
            },
        },
    },
}