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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
lua << EOF
require('nvim-tree').setup({
disable_netrw = true,
hijack_netrw = true,
open_on_tab = true,
hijack_cursor = false,
update_cwd = false,
respect_buf_cwd = true,
diagnostics = {
enable = false,
icons = {
hint = "",
info = "",
warning = "",
error = ""
}
},
update_focused_file = {
enable = false,
update_cwd = false,
ignore_list = {}
},
system_open = {
cmd = nil,
args = {}
},
filters = {
dotfiles = false,
custom = {}
},
git = {
enable = true,
ignore = true,
timeout = 500
},
view = {
width = 30,
side = 'left',
number = false,
relativenumber = false,
signcolumn = "yes"
},
trash = {
cmd = "trash",
require_confirm = true
},
actions = {
open_file = {
quit_on_open = false,
resize_window = true,
window_picker = {
enable = false,
exclude = {
filetype = {
notify = 1,
packer = 1,
qf = 1
},
buftype = {'terminal'}
}
}
},
change_dir = {
global = false
}
},
renderer = {
indent_markers = {enable = true},
highlight_git = true,
highlight_opened_files = "icon",
root_folder_modifier = ":~",
add_trailing = true,
group_empty = true,
special_files = {
README = 1,
Makefile = 1
},
icons = {
padding = " ",
symlink_arrow = " >> ",
show = {
git = true,
folder = true,
file = true,
folder_arrow = true
},
glyphs = {
default = "",
symlink = "",
git = {
unstaged = "✗",
staged = "✓",
unmerged = "",
renamed = "➜",
untracked = "★",
deleted = "",
ignored = "◌"
},
folder = {
arrow_open = "",
arrow_closed = "",
default = "",
open = "",
empty = "",
empty_open = "",
symlink = "",
symlink_open = ""
}
}
}
}
})
require('nvim-treesitter.configs').setup({
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
ensure_installed = "all",
-- Install languages synchronously (only applied to `ensure_installed`)
sync_install = false,
-- List of parsers to ignore installing
ignore_install = {"phpdoc"},
highlight = {
-- `false` will disable the whole extension
enable = true,
disable = {},
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
},
})
EOF
|