xolox / vim-easytags

Automated tag file generation and syntax highlighting of tags in Vim
http://peterodding.com/code/vim/easytags/
1.01k stars 109 forks source link

easytags plugin not generating tags automatically #150

Open hatelove85911 opened 8 years ago

hatelove85911 commented 8 years ago

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_events'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.

ghost commented 7 years ago

Also experiencing this issue.

rosscreighton commented 7 years ago

also having this issue

alex-shamshurin commented 7 years ago

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