Closed swordligit closed 1 year ago
Interesting, if I move all the .git in the workspace, it will list the files.
Leaderf file --no-ignore
That works, thank a lot. but how to customized the shortcut? I change the file to
diff --git a/plugin/leaderf.vim b/plugin/leaderf.vim
index 54d28b4..13f7c9a 100644
--- a/plugin/leaderf.vim
+++ b/plugin/leaderf.vim
@@ -245,7 +245,7 @@ command! -bar -nargs=0 LeaderfLocList Leaderf loclist
try
if g:Lf_ShortcutF != ""
- exec 'nnoremap <silent><unique> ' g:Lf_ShortcutF ':<C-U>LeaderfFile<CR>'
+ exec 'nnoremap <silent><unique> ' g:Lf_ShortcutF ':<C-U>LeaderfFile --no-ignore<CR>'
endif
catch /^Vim\%((\a\+)\)\=:E227/
endtry
noremap <leader>ff :<C-U>Leaderf file --no-ignore<CR>
It works, thank you!
vim --version
ornvim --version
: -VIM - Vi IMproved 9.0 (2022 Jun 28, compiled May 10 2022 08:40:37) Included patches: 1-749:echo has("python")
: 0:echo has("python3")
: 1:echo &pythondll
(only vim, not neovim): none:echo &pythonthreedll
(only vim, not neovim): none:py print(sys.version)
: E319: Sorry, the command is not available in this version:py3 print(sys.version)
: 3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0]:echo g:Lf_Debug_Cmd
: E121: Undefined variable: g:Lf_Debug_Cmd:echo g:Lf_FilesFromCache
: E121: Undefined variable: g:Lf_FilesFromCachlet g:Lf_ShortcutF = "ff"
noremap m :=printf("Leaderf mru %s", "")
noremap b :=printf("Leaderf buffer %s", "")
noremap ft :=printf("Leaderf bufTag %s", "")
noremap fl :=printf("Leaderf line %s", "")
" noremap :=printf("Leaderf! rg --current-buffer -e %s ", expand(""))
" noremap :=printf("Leaderf! rg -e %s ", expand(""))
noremap fb :=printf("Leaderf! rg --current-buffer -e %s ", expand(""))
noremap fe :=printf("Leaderf! rg -e %s ", expand(""))
" search visually selected text literally xnoremapfg :=printf("Leaderf! rg -F -e %s ", leaderf#Rg#visual())
noremap go :Leaderf! rg --recall
" should usefr :=printf("Leaderf! gtags -r %s --auto-jump", expand(""))
noremap fd :=printf("Leaderf! gtags -d %s --auto-jump", expand(""))
noremap fo :=printf("Leaderf! gtags --recall %s", "")
noremap fn :=printf("Leaderf gtags --next %s", "")
noremap fp :=printf("Leaderf gtags --previous %s", "")
Leaderf gtags --update
first let g:Lf_GtagsAutoGenerate = 0 let g:Lf_Gtagslabel = 'native-pygments' noremap