vim-easytags icon indicating copy to clipboard operation
vim-easytags copied to clipboard

easytags plugin not generating tags automatically

Open hatelove85911 opened this issue 8 years ago • 3 comments

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.

hatelove85911 avatar Sep 08 '16 00:09 hatelove85911

Also experiencing this issue.

ghost avatar Dec 05 '16 19:12 ghost

also having this issue

rosscreighton avatar Feb 04 '17 06:02 rosscreighton

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

alex-shamshurin avatar May 10 '17 11:05 alex-shamshurin