Moved nvimtree.vim to nvimtree.lua (#151)

This commit is contained in:
tiagovla 2021-03-20 18:24:28 -03:00 committed by GitHub
parent 896f0e456c
commit 20d07800e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 20 deletions

View file

@ -52,4 +52,22 @@ vim.g.nvim_tree_bindings = {
["-"] = tree_cb("dir_up"), ["-"] = tree_cb("dir_up"),
["q"] = tree_cb("close") ["q"] = tree_cb("close")
} }
vim.g.nvim_tree_icons = {
default = '',
symlink = '',
git = {
unstaged = "",
staged = "",
unmerged = "",
renamed = "",
untracked = ""
},
folder = {
default = "",
open = "",
empty = "",
empty_open = "",
symlink = ""
}
}
vim.cmd([[source ~/.config/nvim/vimscript/nv-nvimtree/init.vim]]) vim.cmd([[source ~/.config/nvim/vimscript/nv-nvimtree/init.vim]])

View file

@ -1,20 +0,0 @@
" TODO this really should be in the lua section
let g:nvim_tree_icons = {
\ 'default': '',
\ 'symlink': '',
\ 'git': {
\ 'unstaged': "",
\ 'staged': "✓",
\ 'unmerged': "",
\ 'renamed': "➜",
\ 'untracked': "✗"
\ },
\ 'folder': {
\ 'default': "",
\ 'open': "",
\ 'empty': "",
\ 'empty_open': "",
\ 'symlink': "",
\ }
\ }