aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/lua/plugins/neotree.lua
blob: 70462e6fc93e6f898358dbf5f44fa349effa72ba (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
return {
    'nvim-neo-tree/neo-tree.nvim',
    branch = "v3.x",
    dependencies = {
      "nvim-lua/plenary.nvim",
      "MunifTanjim/nui.nvim",
      "nvim-tree/nvim-web-devicons", -- optional, but recommended
    },
    lazy = false, -- neo-tree will lazily load itself
    opts = {
        close_if_last_window = true,
        enable_git_status = true,
        default_component_configs = {
            indent = {
                ident_size = 4,
                padding = 2 
            }
        },
        window = {
            mappings = {
                ["<cr>"] = "open",
                ["esc"] = "cancel",
                ["<A-cr>"] = "open_tabnew",
                ["<r>"] = "rename",
                ["<d>"] = "delete"
            }
        }
    }
}