vim-easytags
vim-easytags copied to clipboard
easytags plugin not generating tags automatically
I have xolox/vim-easytags and xolox/vim-misc installed. I have following configuration in vimrc:
let g:easytags_dynamic_files = 1
let g:easytags_on_cursorhold = 1
let g:easytags_updatetime_min = 4000
let g:easytags_auto_update = 1
let g:easytags_async = 1
let g:easytags_by_filetype = '~/tagfiles'
let g:easytags_languages = {
\ 'javascript': {
\ 'cmd': 'jsctags',
\ 'args': ['-f']
\ }
\}
and the g:easytags_event
s's value is: ['BufWritePost', 'CursorHold', 'CursorHoldI']
tags
option value is: ./tags,./TAGS,tags,TAGS,~/.vimtags,~/tagfiles/javascript
Now I stop moving cursor for 10 seconds in normal mode, the tags is not updated to ~/.vimtags or any other possible tag files, what's the problem here?
But tags will be updated when I write the buffer to file.
Also experiencing this issue.
also having this issue
Because it cannot build correct jsctags
command line from these options. The source code of the plugin may be easily changed, but I do not know viml
and cannot make it work for other utilities too. To make it work for jsctags only it's needed to patch autoload/xolox/easytags.vim
file
Patch is https://gist.github.com/alex-shamshurin/915110bc3d2bfda211ae33330399713b
. Config is
let g:easytags_languages = {
\ 'javascript': {
\ 'cmd': 'jsctags',
\ 'args': [],
\ }
\}
See #136