nixpkgs/home/programs/neovim/plugins/ctrlp.vim
Daniel Siepmann 1a61b2b103
Optimize Neovim plugin ctrlp file selection
Do not clear cache on exit. I'm working on huge projects and want a fast
file navigation.
Do not limit number of files as default is already way to low for the
large projects I'm working on.
2022-03-15 09:09:05 +01:00

25 lines
754 B
VimL

let g:ctrlp_follow_symlinks = 2
" Default to regex mode
let g:ctrlp_regexp = 1
let g:ctrlp_match_window = 'top,order:ttb,min:1,max:10'
" let g:ctrlp_open_new_file = '0'
" let g:ctrlp_lazy_update = 1
let g:ctrlp_show_hidden = 1
let g:ctrlp_working_path_mode = 'w'
let g:ctrlp_max_files = 0
let g:ctrlp_clear_cache_on_exit = 0
" Configure completion for tags in buffer,
" e.g. configure which kinds to complete for css.
let g:ctrlp_buftag_types = {
\ 'css' : '--css-types=vcit',
\ 'typescript' : '--typescript-types=cnfvmitesod',
\ 'xml' : '--xml-types=ci',
\ 'rst' : '--reStructuredText-types=csSt',
\ 'markdown' : '--Markdown-types=csStT',
\ 'fluid' : '--xml-types=si',
\ 'apache' : '--apache-types=s',
\ 'yaml' : '--yaml-types=t',
\ }