From e41957e7fbe9f129c7a9ef5f11b4a00f7548bb64 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Wed, 18 Oct 2023 15:29:48 -0700 Subject: [PATCH] Add NERDTree plugin --- nvim/.config/nvim/plugins.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/plugins.vim b/nvim/.config/nvim/plugins.vim index cda283f..33d1c85 100644 --- a/nvim/.config/nvim/plugins.vim +++ b/nvim/.config/nvim/plugins.vim @@ -6,6 +6,7 @@ Plug 'dense-analysis/ale' "Plug 'tweekmonster/deoplete-clang2' Plug 'sbdchd/neoformat' Plug 'junegunn/fzf.vim', { 'do': { -> fzf#install() } } +Plug 'preservim/nerdtree' Plug 'stevearc/vim-arduino' "Plug 'vim-airline/vim-airline' "Plug 'vim-airline/vim-airline-themes' @@ -38,8 +39,8 @@ let g:ale_linters = { let g:deoplete#enable_at_startup = 1 " ---------- Deoplete-Clang ---------- -"g:deoplete#sources#clang#libclang_path = "/Library/Developer/CommandLineTools/usr/lib/libclang.dylib" -"g:deoplete#sources#clang#clang_header = "/Library/Developer/CommandLineTools/usr/lib/clang" +"g:deoplete#sources#clang#libclang_path = '/Library/Developer/CommandLineTools/usr/lib/libclang.dylib' +"g:deoplete#sources#clang#clang_header = '/Library/Developer/CommandLineTools/usr/lib/clang' " ---------- Fzf ---------- map :FZF @@ -118,6 +119,11 @@ nnoremap :call fzf#run({ \ 'down': len(buflist()) + 2 \ }) +" ---------- NERDTree ---------- +" Start NERDTree when Vim is started without file arguments. +autocmd StdinReadPre * let s:std_in=1 +autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif + " ---------- Neoformat ---------- " Override python formatter let g:neoformat_enabled_python=['black']