I'm trying to add a plugin that will provide additional tags files to look up the documentation of a language: https://github.com/DanielSiepmann/phpstorm-stubs/blob/feature/add-dynamic-tags-file/plugin/php.vim But none of my tries worked out:
let &l:tags += expand('%:p:h:h') . "/tags" let &tags = expand('%:p:h:h') . "/tags" set tags += expand('%:p:h:h') . "/tags"
The first solution returns the following error:
Error detected while processing /Users/siepmann/.dotfiles/.vim/bundle/phpstorm-stubs/plugin/php.vim: line 1: E734: Wrong variable type for += Press ENTER or type command to continue
The second one will prevent all other defaults that would be set in addition. So
tags=./tags,tags will become
~/Projects/typo3/ is current working dir.
The thing is that the plugin should ship with the tags file and as the plugin can be installed into multiple locations the include should be dynamic.
So what will be a working solution / approach?