Add a vim plugin that significantly speeds up ctrlp's fuzzy matcher

This commit is contained in:
Michael Campagnaro 2024-01-20 22:42:02 -05:00
parent e175fefa18
commit 9876fcf4cd

2
.vimrc
View File

@ -236,6 +236,7 @@ Plug 'sir-pinecone/vim-ripgrep' " Fast grep-like
Plug 'sir-pinecone/vim-qargs', " For the GlobalReplaceIt function (i.e. search and replace). Plug 'sir-pinecone/vim-qargs', " For the GlobalReplaceIt function (i.e. search and replace).
Plug 'sir-pinecone/AnsiEsc.vim' " Ansi escape sequences concealed, but highlighted as specified. Plug 'sir-pinecone/AnsiEsc.vim' " Ansi escape sequences concealed, but highlighted as specified.
Plug 'sir-pinecone/ctrlp.vim', " Fuzzy file, buffer, mru, tag, etc finder. Plug 'sir-pinecone/ctrlp.vim', " Fuzzy file, buffer, mru, tag, etc finder.
Plug 'sir-pinecone/ctrlp-py-matcher' " Significantly speed up ctrlp's fuzzy matcher.
Plug 'vim-airline/vim-airline', { 'commit': 'c7460aa' } " Enhanced status/tabline. Plug 'vim-airline/vim-airline', { 'commit': 'c7460aa' } " Enhanced status/tabline.
Plug 'embear/vim-localvimrc', { 'commit': '0206f5f' } " Add a .lvimrc to a folder to override .vimrc config. Plug 'embear/vim-localvimrc', { 'commit': '0206f5f' } " Add a .lvimrc to a folder to override .vimrc config.
Plug 'tpope/vim-fugitive', { 'commit': '46eaf89' } " Git wrapper (I particularly like :Gblame, which I've wrapped as :Blame) Plug 'tpope/vim-fugitive', { 'commit': '46eaf89' } " Git wrapper (I particularly like :Gblame, which I've wrapped as :Blame)
@ -928,6 +929,7 @@ let g:ctrlp_working_path_mode = 'ra' " Search from nearest ancestor of the curre
let g:ctrlp_switch_buffer = 'et' " If a file is already open, open it again in a new pane instead of switching to the existing pane let g:ctrlp_switch_buffer = 'et' " If a file is already open, open it again in a new pane instead of switching to the existing pane
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] " If a git repo, use checked in files (ignore things in .gitignore); fallback to globpath() let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] " If a git repo, use checked in files (ignore things in .gitignore); fallback to globpath()
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }
"################################################################################## "##################################################################################
" GIT " GIT