summaryrefslogtreecommitdiff
path: root/lua/plugins/nvim-tree.lua
blob: bf9d7c1670cfb4bbb77be1b032b2a373c8dccfc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1

-- OR setup with some options
require('nvim-tree').setup({
	sort_by = "case_sensitive",
	view = {
		adaptive_size = true,
		mappings = {
			list = {
				{ key = "u", action = "dir_up" },
			},
		},
	},
	renderer = {
		group_empty = true,
		highlight_opened_files = "all"
	},
	filters = {
		dotfiles = true,
	},
})