gtags (GNU Global) 6.6.12
Powered by Berkeley DB 1.85 and SQLite3 3.45.1.
Copyright (c) 1996-2024 Tama Communications Corporation
License GPLv3+: GNU GPL version 3 or later http://www.gnu.org/licenses/gpl.html
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Output of
vim --version
ornvim --version
::echo has("python")
: 0:echo has("python3")
: 1:echo &pythondll
(only vim, not neovim)::echo &pythonthreedll
(only vim, not neovim)::py print(sys.version)
: 3.10.13 (main, Aug 24 2023, 12:59:26) [clang-1500.1.0.2.5]:py3 print(sys.version)
: 3.10.13 (main, Aug 24 2023, 12:59:26) [clang-1500.1.0.2.5]:echo g:Lf_Debug_Cmd
::echo g:Lf_FilesFromCache
:let g:Lf_NormalMap = { \ "*": [["", ""], ["", ""]],
\ "File": [["", ':exec g:Lf_py "fileExplManager.quit()"']],
\ "Buffer": [["", ':exec g:Lf_py "bufExplManager.quit()"']],
\ "Mru": [["", ':exec g:Lf_py "mruExplManager.quit()"']],
\ "Tag": [["", ':exec g:Lf_py "tagExplManager.quit()"']],
\ "BufTag": [["", ':exec g:Lf_py "bufTagExplManager.quit()"']],
\ "Rg": [["", ':exec g:Lf_py "rgExplManager.quit()"']],
\ "Gtags": [["", ':exec g:Lf_py "gtagsExplManager.quit()"']],
\ "Function":[["", ':exec g:Lf_py "functionExplManager.quit()"']],
\ "History": [["", ':exec g:Lf_py "historyExplManager.quit()"']],
\ "Command": [["", ':exec g:Lf_py "commandExplManager.quit()"']]
}
let g:Lf_CommandMap = { \ '': '',
\ '': ''
}
let g:Lf_CursorBlink = 0 let g:Lf_WindowHeight = 0.30 let g:Lf_FollowLinks = 1
" buffers nnoremap :LeaderfBuffer
" files
let g:Lf_ShortcutF = ']a'
" Mru
nnoremap :LeaderfMru
" bufTag
nnoremap ]t :LeaderfBufTagCword
xnoremap ]t :=printf('Leaderf bufTag --input %s', get_visual_selection())
noremap ]T :LeaderfBufTag
nnoremap ] :LeaderfBufTagAllCword
xnoremap ] :=printf('Leaderf bufTag --all --input %s', get_visual_selection())
noremap ]st :LeaderfBufTagAll
" function
nnoremap ]f :LeaderfFunctionCword
xnoremap ]f :=printf('Leaderf function --input %s', get_visual_selection())
noremap ]F :LeaderfFunction
nnoremap ] :LeaderfFunctionAllCword
xnoremap ] :=printf('Leaderf function --all --input %s', get_visualselection())
noremap ]sf :LeaderfFunctionAll
" command
noremap ]x :LeaderfCommand
" history
nnoremap q :LeaderfHistoryCmd
xnoremap q_ :LeaderfHistoryCmd
nnoremap q: :LeaderfHistoryCmd
xnoremap q: :LeaderfHistoryCmd
nnoremap q/ :LeaderfHistorySearch
xnoremap q/ :LeaderfHistorySearch
" rg
noremap / :Leaderf rg --all-buffers
noremap ? :Leaderf rg
nnoremap # :=printf('Leaderf! rg --current-buffer -e %s ', expand(''))
xnoremap # :=printf('Leaderf! rg --current-buffer -e %s ', leaderf#Rg#visual())
noremap ] :=printf('Leaderf! rg --all-buffers -e %s ', expand(''))
noremap :=printf('Leaderf! rg -e %s ', expand(''))
xnoremap ]# :=printf('Leaderf! rg -F -e %s ', leaderf#Rg#visual())
" gtags
let g:Lf_GtagsAutoGenerate = 1
let g:Lf_Gtagslabel = 'native-pygments'
noremap gr :=printf('Leaderf! gtags -r %s --auto-jump', expand(''))
noremap gd :=printf('Leaderf! gtags -d %s --auto-jump', expand(''))
" recall
noremap ]rt :Leaderf! bufTag --recall
noremap ]rf :Leaderf! function --recall
noremap ]rr :Leaderf! rg --recall
noremap ]rg :Leaderf! gtags --recall
let g:Lf_WildIgnore = { \ 'dir': ['.svn','.git','.hg','plugged','vendor','node_modules'], \ 'file': ['.sw?','~$','.bak','.exe','.o','.so','*.py[co]', \ '.DS_Store'] }
function!get_visual_selection()
" Why is this not a built-in Vim script function?!
let [line_start, column_start] = getpos("'<")[1:2]
let [line_end, column_end] = getpos("'>")[1:2]
let lines = getline(line_start, line_end)
if len(lines) == 0
return ''
endif
let lines[-1] = lines[-1][: column_end - (&selection == 'inclusive' ? 1 : 2)]
let lines[0] = lines[0][column_start - 1:]
return join(lines, "\n")
endfunction
Steps to reproduce
nvim ~/.vim/base.vim
:w<CR>
或
nvim ~/.vim/base.vim
e ~/.vim/plugin_config.vim<CR>
但是
nvim ~/.vim/base.vim
:w<CR>
e ~/.vim/plugin_config.vim<CR>
Actual behaviour
报错
Expected behaviour
没有报错
备注
gtags (GNU Global) 6.6.12 Powered by Berkeley DB 1.85 and SQLite3 3.45.1. Copyright (c) 1996-2024 Tama Communications Corporation License GPLv3+: GNU GPL version 3 or later http://www.gnu.org/licenses/gpl.html This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
ctags --version
Universal Ctags 6.1.0, Copyright (C) 2015-2023 Universal Ctags Team Universal Ctags is derived from Exuberant Ctags. Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert Compiled: Mar 9 2024, 01:15:16 URL: https://ctags.io/ Output version: 0.0 Optional compiled features: +wildcards, +regex, +gnulib_fnmatch, +gnulib_regex, +iconv, +option-directory, +xpath, +json, +interactive, +yaml, +case-insensitive-filenames, +packcc, +optscript, +pcre2