[feature] show hidden file with fzf

This commit is contained in:
Klesh Wong 2021-01-19 00:06:18 +08:00
parent 54726273f1
commit 8d7743b7b8

View File

@ -236,6 +236,7 @@ nnoremap <leader>gsc :exec "!git switch -c " . input("Enter new branch name:")<C
" ==== fzf configuration ==== " ==== fzf configuration ====
" enable <C-p> for fzf " enable <C-p> for fzf
let g:fugitive_no_maps=1 let g:fugitive_no_maps=1
let $FZF_DEFAULT_COMMAND = 'ag --hidden --ignore .git -l -g ""'
nnoremap <C-p> :call fzf#vim#files(trim(system("git rev-parse --show-toplevel \|\| pwd")))<Cr> nnoremap <C-p> :call fzf#vim#files(trim(system("git rev-parse --show-toplevel \|\| pwd")))<Cr>
nnoremap <leader>gco :call fzf#run({'source': 'git branch \| cut -c 3-; git tag -l', 'sink': '!git checkout'})<CR> nnoremap <leader>gco :call fzf#run({'source': 'git branch \| cut -c 3-; git tag -l', 'sink': '!git checkout'})<CR>