From 7617675981dc0f2d77cd1449536d4284de46ec5d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 4 May 2017 21:00:57 +0200 Subject: projects/af83.vim: Set a custom .agignore for Pick When opening files with Pick and pick.vim, use a project-level .agignore file to ignore files and directories that shouldn't be searched when fuzzy-finding. This allows us to eliminate vendor directories like `node_modules` from the search path. --- projects/af83.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/af83.vim b/projects/af83.vim index 7c070e0..8788a06 100644 --- a/projects/af83.vim +++ b/projects/af83.vim @@ -2,6 +2,9 @@ augroup af83 autocmd! + autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AF83/* + \ let g:pick_command = "ag -l -a -p './.agignore' -g ''" + autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AF83/* \ nnoremap mk :mksession! vimsession augroup END -- cgit v1.2.3