-
Notifications
You must be signed in to change notification settings - Fork 0
/
nvim-tree.lua
64 lines (60 loc) · 1.18 KB
/
nvim-tree.lua
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
local status_ok, nvim_tree = pcall(require, "nvim-tree")
if not status_ok then
return
end
vim.g.root_folder_modifier = ":t"
vim.g.git_hl = 1
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- change color for arrows in tree to light blue
-- vim.cmd([[ highlight NvimTreeIndentMarker guifg=#3FC5FF ]])
nvim_tree.setup({
actions = {
open_file = {
quit_on_open = true,
window_picker = {
enable = false,
},
},
change_dir = {
enable = false,
global = false,
restrict_above_cwd = true,
}
},
update_focused_file = {
enable = true,
update_root = false,
ignore_list = {},
},
view = {
adaptive_size = false,
centralize_selection = false,
width = "50%",
hide_root_folder = false,
side = "left",
preserve_window_proportions = false,
number = true,
relativenumber = true,
signcolumn = "yes",
mappings = {
custom_only = false,
list = {
-- user mappings go here
},
},
float = {
enable = false,
quit_on_focus_loss = true,
open_win_config = {
relative = "editor",
border = "rounded",
width = 30,
height = 30,
row = 1,
col = 1,
},
},
},
})
vim.keymap.set("n", "<leader>e", "<cmd>NvimTreeToggle<CR>")