vim: fix nvim-tree configuration
This commit is contained in:
parent
1529b88178
commit
e63498414a
1 changed files with 28 additions and 30 deletions
|
@ -11,7 +11,8 @@ local function set_globals(tbl)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local global_opts ={
|
local config = function()
|
||||||
|
set_globals {
|
||||||
add_trailing = 1, -- add trailing / to folders
|
add_trailing = 1, -- add trailing / to folders
|
||||||
group_empty = 1, -- folders that contain only one folder are grouped
|
group_empty = 1, -- folders that contain only one folder are grouped
|
||||||
indent_markers = 1, -- show indent markers
|
indent_markers = 1, -- show indent markers
|
||||||
|
@ -23,7 +24,7 @@ local global_opts ={
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local nvim_tree_config = {
|
require'nvim-tree'.setup {
|
||||||
auto_close = true, -- close vim if tree is the last window
|
auto_close = true, -- close vim if tree is the last window
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
|
@ -40,9 +41,6 @@ local nvim_tree_config = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local config = function()
|
|
||||||
require'nvim-tree'.setup(nvim_tree_config)
|
|
||||||
|
|
||||||
highlight('NvimTreeSpecialFile') { fg = colors.base2 }
|
highlight('NvimTreeSpecialFile') { fg = colors.base2 }
|
||||||
highlight('NvimTreeIndentMarker') { fg = colors.base01 }
|
highlight('NvimTreeIndentMarker') { fg = colors.base01 }
|
||||||
highlight('NvimTreeGitStaged') { fg = colors.green }
|
highlight('NvimTreeGitStaged') { fg = colors.green }
|
||||||
|
|
Loading…
Add table
Reference in a new issue