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
|
||||
|
||||
local global_opts ={
|
||||
local config = function()
|
||||
set_globals {
|
||||
add_trailing = 1, -- add trailing / to folders
|
||||
group_empty = 1, -- folders that contain only one folder are grouped
|
||||
indent_markers = 1, -- show indent markers
|
||||
|
@ -21,9 +22,9 @@ local global_opts ={
|
|||
default = '', -- default icon for files
|
||||
symlink = '', -- default icon for symlinks
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
local nvim_tree_config = {
|
||||
require'nvim-tree'.setup {
|
||||
auto_close = true, -- close vim if tree is the last window
|
||||
|
||||
git = {
|
||||
|
@ -38,10 +39,7 @@ local nvim_tree_config = {
|
|||
dotfiles = false, -- show files starting with a .
|
||||
custom = { '.git' }, -- don't show .git directory
|
||||
},
|
||||
}
|
||||
|
||||
local config = function()
|
||||
require'nvim-tree'.setup(nvim_tree_config)
|
||||
}
|
||||
|
||||
highlight('NvimTreeSpecialFile') { fg = colors.base2 }
|
||||
highlight('NvimTreeIndentMarker') { fg = colors.base01 }
|
||||
|
|
Loading…
Add table
Reference in a new issue