all repos

init.lua @ ca6d958

my nvim config

init.lua/lua/plugins/nvimtree.lua(view raw)

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
return {
  "kyazdani42/nvim-tree.lua",
  cmd = "NvimTreeToggle",
  keys = {
    { "<leader>e", vim.cmd.NvimTreeToggle },
  },
  opts = {
    diagnostics = { enable = true },
    renderer = { group_empty = true },
    git = { enable = true },
    filters = {
      dotfiles = true,
      custom = {
        "^\\.git$",
        "^\\.bin$",
        "node_modules",
        "__pycache__",
        "vendor",
        "target",
      },
    },
    view = {
      side = "right",
      mappings = {
        list = {
          { key = { "l", "<CR>", "o" }, action = "edit" },
          { key = "h", action = "close_node" },
          { key = "v", action = "vsplit" },
          { key = "s", action = "split" },
        },
      },
    },
  },
}