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.
This commit is contained in:
Ade Attwood 2022-07-07 19:54:49 +01:00
parent db5f19471e
commit 110b609a26

View file

@ -70,7 +70,11 @@ au BufWritePost <buffer> lua require('lint').try_lint()
inoremap jj <esc>:w<cr>
nnoremap <leader><tab> <c-^>
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