1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:40:05 +08:00

Fix ctrlp config (#2879)

* Fix ctrlp config

* Disable merge
This commit is contained in:
Wang Shidong 2019-06-09 22:33:46 +08:00 committed by GitHub
parent 331139505a
commit dc1662548c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 13 deletions

View File

@ -9,7 +9,7 @@
function! SpaceVim#layers#ctrlp#plugins() abort function! SpaceVim#layers#ctrlp#plugins() abort
let plugins = [ let plugins = [
\ ['ctrlpvim/ctrlp.vim', {'loadconf' : 1, 'merged' : 0}], \ ['ctrlpvim/ctrlp.vim', {'loadconf' : 1, 'merged' : 0}],
\ ['FelikZ/ctrlp-py-matcher'], \ ['FelikZ/ctrlp-py-matcher', {'merged' : 0}],
\ ['mattn/ctrlp-register', {'on_cmd' : 'CtrlPRegister'}], \ ['mattn/ctrlp-register', {'on_cmd' : 'CtrlPRegister'}],
\ ['DeaR/ctrlp-jumps', {'on_cmd' : 'CtrlPJump'}], \ ['DeaR/ctrlp-jumps', {'on_cmd' : 'CtrlPJump'}],
\ ['SpaceVim/vim-ctrlp-help', {'on_cmd' : 'CtrlPHelp'}], \ ['SpaceVim/vim-ctrlp-help', {'on_cmd' : 'CtrlPHelp'}],

View File

@ -1,3 +1,12 @@
"=============================================================================
" ctrlp.vim --- ctrlp config
" Copyright (c) 2016-2019 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
let s:SYS = SpaceVim#api#import('system') let s:SYS = SpaceVim#api#import('system')
let g:ctrlp_map = get(g:,'ctrlp_map', '<c-p>') let g:ctrlp_map = get(g:,'ctrlp_map', '<c-p>')
@ -33,11 +42,7 @@ endif
if !exists('g:ctrlp_match_func') && (has('python') || has('python3')) if !exists('g:ctrlp_match_func') && (has('python') || has('python3'))
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' } let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }
endif endif
"nnoremap <Leader>kk :CtrlPMixed<Cr>
" comment for ctrlp-funky {{{
nnoremap <Leader>fu :CtrlPFunky<Cr>
" narrow the list down with a word under cursor
nnoremap <Leader>fU :execute 'CtrlPFunky ' . expand('<cword>')<Cr>
let g:ctrlp_funky_syntax_highlight = get(g:, 'ctrlp_funky_syntax_highlight', 1) let g:ctrlp_funky_syntax_highlight = get(g:, 'ctrlp_funky_syntax_highlight', 1)
" }}} " }}}
"for ctrlp_nerdtree {{{ "for ctrlp_nerdtree {{{
@ -46,12 +51,7 @@ let g:ctrlp_nerdtree_show_hidden = get(g:, 'ctrlp_nerdtree_show_hidden', 1)
"for ctrlp_sessions{{{ "for ctrlp_sessions{{{
let g:ctrlp_extensions = ['funky', 'sessions' , 'k' , 'tag', 'mixed', 'quickfix', 'undo', 'line', 'changes', 'cmdline', 'menu'] let g:ctrlp_extensions = ['funky', 'sessions' , 'k' , 'tag', 'mixed', 'quickfix', 'undo', 'line', 'changes', 'cmdline', 'menu']
"}}} "}}}
"for k.vim {{{
nnoremap <silent> <leader>qe :CtrlPK<CR>
"}}}
" for ctrlp-launcher {{{
nnoremap <Leader>pl :<c-u>CtrlPLauncher<cr>
"}}}
""for ctrlp-cmatcher {{{ ""for ctrlp-cmatcher {{{
"let g:ctrlp_max_files = 0 "let g:ctrlp_max_files = 0
"let g:ctrlp_match_func = {'match' : 'matcher#cmatch' } "let g:ctrlp_match_func = {'match' : 'matcher#cmatch' }
@ -60,7 +60,6 @@ nnoremap <Leader>pl :<c-u>CtrlPLauncher<cr>
augroup Fix_command_in_help_buffer augroup Fix_command_in_help_buffer
au! au!
autocmd FileType help exec 'nnoremap <buffer><silent><c-p> :<c-u>CtrlP ' . getcwd() .'<cr>' autocmd FileType help exec 'nnoremap <buffer><silent><c-p> :<c-u>CtrlP ' . getcwd() .'<cr>'
au FileType help exec "nnoremap <silent><buffer> q :q<CR>"
augroup END augroup END
" vim:set et sw=2: " vim:set et sw=2: