From 110b609a260fa294fd5779d9a871e30c748fbb02 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Thu, 7 Jul 2022 19:54:49 +0100 Subject: [PATCH] fix(vim): change wildignore to CommandTWildIgnore setting Use the CommandTWildIgnore insted of the wildignore so I can still get completion for :e in folders like vendor or node_modules but, they will be ignored from command-t file searches. --- site-modules/core/files/vim/init.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site-modules/core/files/vim/init.vim b/site-modules/core/files/vim/init.vim index e407f5c..cbaf82c 100644 --- a/site-modules/core/files/vim/init.vim +++ b/site-modules/core/files/vim/init.vim @@ -70,7 +70,11 @@ au BufWritePost lua require('lint').try_lint() inoremap jj :w nnoremap -set wildignore+=*/vendor/*,*/node_modules/*,*/runtime/*,*/public_html/*,*/pack/* + +" Use the CommandTWildIgnore insted of the wildignore so I can still get +" completion for :e in folders like vendor or node_modules but, they will be +" ignored from command-t file searches. +let g:CommandTWildIgnore="*/node_modules/*,*/vendor/*,*/runtime/*,*/public_html/*,*/pack/*" " Required for complietion with nvim-cmp set completeopt=menu,menuone,noselect