aboutsummaryrefslogtreecommitdiffstats
path: root/projects
diff options
context:
space:
mode:
authorTeddy Wing2017-05-04 21:00:57 +0200
committerTeddy Wing2017-05-04 21:03:43 +0200
commit7617675981dc0f2d77cd1449536d4284de46ec5d (patch)
tree82821507b55c9ea7de0a1e835c1eac52f4456bef /projects
parentb38d6267a7a20f2e78a3149809192f6f6e2ddeb3 (diff)
downloaddotvim-7617675981dc0f2d77cd1449536d4284de46ec5d.tar.bz2
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.
Diffstat (limited to 'projects')
-rw-r--r--projects/af83.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/projects/af83.vim b/projects/af83.vim
index 7c070e0..8788a06 100644
--- a/projects/af83.vim
+++ b/projects/af83.vim
@@ -3,5 +3,8 @@ 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 <buffer> <leader>mk :mksession! vimsession<cr>
augroup END