plugins.vim 950 B

123456789101112131415161718192021222324252627282930
  1. " auto-install vim-plug
  2. if empty(glob('~/.config/nvim/autoload/plug.vim'))
  3. silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
  4. \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  5. "autocmd VimEnter * PlugInstall
  6. "autocmd VimEnter * PlugInstall | source $MYVIMRC
  7. endif
  8. call plug#begin('~/.config/nvim/autoload/plugged')
  9. " Better Syntax Support
  10. Plug 'sheerun/vim-polyglot'
  11. " File Explorer + icons
  12. Plug 'scrooloose/NERDTree'
  13. Plug 'ryanoasis/vim-devicons'
  14. " Bracket auto pairs
  15. Plug 'jiangmiao/auto-pairs'
  16. " COC
  17. Plug 'neoclide/coc.nvim', {'branch':'release'}
  18. call plug#end()
  19. let g:NERDTreeShowHidden = 1
  20. let g:NERDTreeMinimalUI = 1
  21. let g:NERDTreeIgnore = []
  22. let g:NERDTreeStatusline = ''
  23. " NERDTree autoclose
  24. autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
  25. nnoremap <silent> <C-b> :NERDTreeToggle<CR>