This commit is contained in:
anon
2023-10-01 16:40:29 +02:00
parent 8b21549db8
commit 7b986e5767
2 changed files with 13 additions and 13 deletions

View File

@ -9,7 +9,7 @@
" ~/.vim/plugin/HiTags/ is guaranteed to exist after installation,
" thats why it's the default
" otherwise you are responsible for creating your own
let s:polution_directory = '~/.vim/plugin/HiTags/'
let s:polution_directory = expand('~/.vim/plugin/HiTags/')
" Compiler to use for preprocessing C/C++, so headers are respected
" Either use "clang" or "gcc" or something compatible,
@ -27,12 +27,12 @@ let s:tags_file = expand(s:polution_directory) . s:tags_filename
let s:tags_scriptname = 'tags.vim'
let s:tags_script = expand(s:polution_directory) . 'tags.vim'
"
let s:generator_script = '~/.vim/plugin/HiTags/hitags.py'
let s:generator_script = expand('~/.vim/plugin/HiTags/hitags.py')
let s:generation_command = 'python ' . s:generator_script .
\ ' -i ' . expand('%:p') .
\ ' -p ' . s:preprocessor .
\ ' -t ' . s:polution_directory .
\ ' > ' . s:polution_directory . s:tags_script
\ ' -i ' . '"' . expand('%:p') . '"' .
\ ' -p ' . '"' . s:preprocessor . '"' .
\ ' -t ' . '"' . s:polution_directory . '"' .
\ ' > ' . '"' . s:tags_script . '"'
function! HiTagsUpdate()
let pid = system(s:generation_command)