Switch to nvim-tree
This commit is contained in:
parent
cca23b1307
commit
9325bcd34d
@ -1,7 +0,0 @@
|
|||||||
augroup CustomNERDTree
|
|
||||||
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
|
|
||||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
|
||||||
autocmd Filetype nerdtree,tagbar setlocal signcolumn=no nocursorline norelativenumber
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
noremap <Leader>d :NERDTreeToggle<CR>
|
|
31
nvim/nvimtree.vimrc
Normal file
31
nvim/nvimtree.vimrc
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
let g:nvim_tree_icons = {
|
||||||
|
\ 'default': '',
|
||||||
|
\ 'symlink': '',
|
||||||
|
\ 'git': {
|
||||||
|
\ 'unstaged': "✗",
|
||||||
|
\ 'staged': "✓",
|
||||||
|
\ 'unmerged': "",
|
||||||
|
\ 'renamed': "➜",
|
||||||
|
\ 'untracked': "★",
|
||||||
|
\ 'deleted': "",
|
||||||
|
\ 'ignored': "◌"
|
||||||
|
\ },
|
||||||
|
\ 'folder': {
|
||||||
|
\ 'arrow_open': "🗹",
|
||||||
|
\ 'arrow_closed': "☐",
|
||||||
|
\ 'default': "",
|
||||||
|
\ 'open': "",
|
||||||
|
\ 'empty': "",
|
||||||
|
\ 'empty_open': "",
|
||||||
|
\ 'symlink': "",
|
||||||
|
\ 'symlink_open': "",
|
||||||
|
\ },
|
||||||
|
\ 'lsp': {
|
||||||
|
\ 'hint': "",
|
||||||
|
\ 'info': "",
|
||||||
|
\ 'warning': "",
|
||||||
|
\ 'error': "",
|
||||||
|
\ }
|
||||||
|
\ }
|
||||||
|
|
||||||
|
noremap <C-n> :NvimTreeToggle<CR>
|
@ -23,15 +23,14 @@ Plug 'itchyny/lightline.vim' |
|
|||||||
\ Plug 'albertomontesg/lightline-asyncrun' |
|
\ Plug 'albertomontesg/lightline-asyncrun' |
|
||||||
\ Plug 'itchyny/vim-gitbranch' |
|
\ Plug 'itchyny/vim-gitbranch' |
|
||||||
\ Plug 'macthecadillac/lightline-gitdiff' |
|
\ Plug 'macthecadillac/lightline-gitdiff' |
|
||||||
|
\ Plug 'ryanoasis/vim-devicons' |
|
||||||
\ Plug 'anstadnik/tmuxline.vim'
|
\ Plug 'anstadnik/tmuxline.vim'
|
||||||
" Using the above fork for lightline truecolor support
|
" Using the above fork for lightline truecolor support
|
||||||
" \ Plug 'edkolev/tmuxline.vim'
|
" \ Plug 'edkolev/tmuxline.vim'
|
||||||
|
|
||||||
" NerdTree
|
" NvimTree
|
||||||
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' } |
|
Plug 'kyazdani42/nvim-tree.lua' |
|
||||||
\ Plug 'Xuyuanp/nerdtree-git-plugin', { 'on': 'NERDTreeToggle' } |
|
\ Plug 'kyazdani42/nvim-web-devicons'
|
||||||
\ Plug 'ryanoasis/vim-devicons' |
|
|
||||||
\ Plug 'tiagofumo/vim-nerdtree-syntax-highlight', { 'on': 'NERDTreeToggle' }
|
|
||||||
|
|
||||||
" Vim-Markdown
|
" Vim-Markdown
|
||||||
Plug 'godlygeek/tabular' |
|
Plug 'godlygeek/tabular' |
|
||||||
|
4
vimrc
4
vimrc
@ -93,8 +93,8 @@ if filereadable(expand("~/.config/nvim/git.vimrc"))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" NERDTree setup
|
" NERDTree setup
|
||||||
if filereadable(expand("~/.config/nvim/nerdtree.vimrc"))
|
if filereadable(expand("~/.config/nvim/nvimtree.vimrc"))
|
||||||
source ~/.config/nvim/nerdtree.vimrc
|
source ~/.config/nvim/nvimtree.vimrc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Projections
|
" Projections
|
||||||
|
Loading…
x
Reference in New Issue
Block a user