Skip to content

Commit

Permalink
Fix SPC p f mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Feb 3, 2018
1 parent 37fd301 commit 39304db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/autoload/spacevim/plug/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,10 @@ function! spacevim#plug#fzf#FindFileInProject()
endfunction

" ------------------------------------------------------------------
" FZF search
" Rag utilizes ag in the root directory of project
" ------------------------------------------------------------------
command! -nargs=* Rag
\ call fzf#vim#ag(<q-args>, extend({'dir':FindRootDirectory()}, g:fzf_layout))
\ call fzf#vim#ag(<q-args>, extend({'dir':FindRootDirectory(), 'options': '--prompt="Search in Project:"'}, g:fzf_layout))
function! spacevim#plug#fzf#SearchInProject()
exe ':Rag'
endfunction
2 changes: 1 addition & 1 deletion core/autoload/spacevim/plug/leaderGuide.vim
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ let g:spacevim#plug#leaderGuide#lmap['j'] = {
\ }
let g:spacevim#plug#leaderGuide#lmap['p'] = {
\ 'name' : '+projects',
\ 'f' : ['call spacevim#plug#fzf#Project()', 'find-file-in-project'],
\ 'f' : ['call spacevim#plug#fzf#FindFileInProject()', 'find-file-in-project'],
\ 's' : ['Rag', 'search-in-project'],
\ }
let g:spacevim#plug#leaderGuide#lmap['q'] = [ 'q', 'quit' ]
Expand Down
2 changes: 0 additions & 2 deletions layers/+programming/programming/packages.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ MP 'junegunn/rainbow_parentheses.vim', { 'for': ['lisp', 'clojure', 'scheme'] }
" Need to disable airline extension for tagbar, see vim-airline issue 1313.
MP 'majutsushi/tagbar', { 'on': 'TagbarToggle' }

MP 'Chiel92/vim-autoformat', { 'on': 'Autoformat' }

MP 'Yggdroot/indentLine', { 'on': 'IndentLinesToggle' }
MP 'nathanaelkane/vim-indent-guides', { 'on': 'IndentGuidesToggle' }

Expand Down

0 comments on commit 39304db

Please sign in to comment.