Skip to content

Commit

Permalink
change fzf
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyangze committed Jan 28, 2023
1 parent b437564 commit 6864bc6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion layers/common/tool-fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ let $FZF_DEFAULT_COMMAND = "find * -path '*/\.*' -prune -o -path 'node_modules/

" fzf {{{
"set rtp+=~/.fzf

function! s:build_quickfix_list(lines)
call setqflist(map(copy(a:lines), '{ "filename": v:val }'))
copen
cc
endfunction

let g:fzf_action = {
\ 'ctrl-q': function('s:build_quickfix_list'),
\ 'ctrl-t': 'tab split',
\ 'ctrl-x': 'split',
\ 'ctrl-v': 'vsplit'
\ }
let $FZF_DEFAULT_OPTS = '--bind ctrl-q:select-all+accept'
let $FZF_DEFAULT_OPTS = '--bind ctrl-a:select-all,ctrl-d:deselect-all'

let g:fzf_colors =
\ { 'fg': ['fg', 'Normal'],
Expand Down

0 comments on commit 6864bc6

Please sign in to comment.