mirror of
https://github.com/anthonyoteri/dotfiles.git
synced 2026-06-05 23:56:52 -04:00
Add neo-vim configuration
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
|
||||
|
||||
let NERDTreeShowHidden=1
|
||||
let NERDTreeMinimalUI=1
|
||||
|
||||
let g:NERDTreeDirArrowExpandable = '▹'
|
||||
let g:NERDTreeDirArrowCollapsible = '▿'
|
||||
|
||||
nnoremap <expr> <leader>n g:NERDTree.IsOpen() ? ':NERDTreeClose<CR>' : @% == '' ? ':NERDTree<CR>' : ':NERDTreeFind<CR>'
|
||||
nmap <leader>N :NERDTreeFind<CR>
|
||||
|
||||
" If more than one window and previous buffer was NERDTree, go back to it.
|
||||
autocmd BufEnter * if bufname('#') =~# "^NERD_tree_" && winnr('$') > 1 | b# | endif
|
||||
|
||||
" avoid crashes when calling vim-plug functions while the cursor is on the NERDTree window
|
||||
let g:plug_window = 'noautocmd vertical topleft new'
|
||||
|
||||
let g:WebDevIconsUnicodeDecorateFolderNodes = 1
|
||||
let g:DevIconsEnableFoldersOpenClose = 1
|
||||
let g:DevIconsEnableFolderExtensionPatternMatching = 1
|
||||
Reference in New Issue
Block a user