~kris/dots

srice

ref: e5cf200ba29f0a659b2e92172f2fc940dc8d2017 srice/.config/nvim/lua/plugins/neo-tree.lua -rw-r--r-- 584 bytes
e5cf200b — Kris Yotam conky: Plan 9 modern theme with cyan border 3 months ago
                                                                                
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
-- Always show neo-tree sidebar
return {
  {
    "nvim-neo-tree/neo-tree.nvim",
    opts = {
      filesystem = {
        filtered_items = {
          visible = true,
          hide_dotfiles = false,
          hide_gitignored = false,
        },
      },
    },
    init = function()
      -- Auto-open neo-tree on startup
      vim.api.nvim_create_autocmd("VimEnter", {
        callback = function()
          if vim.fn.argc() > 0 then
            -- Only open if we're opening a file/directory
            vim.cmd("Neotree show")
          end
        end,
      })
    end,
  },
}