othree / yajs.vim

YAJS.vim: Yet Another JavaScript Syntax for Vim
http://www.vim.org/scripts/script.php?script_id=4974
Vim License
688 stars 41 forks source link

Conflict with vim-polyglot #67

Open ldong opened 9 years ago

ldong commented 9 years ago

Plugin 'othree/yajs.vim' and Plugin 'sheerun/vim-polyglot' cannot work together

See issue from https://github.com/sheerun/vim-polyglot/issues/68

Having installed both, and type vim a.html will result following screenshot

screen shot 2015-09-19 at 9 35 36 pm
ldong commented 9 years ago

Maybe a dependency check prior to apply yajs's own syntax?

Delapouite commented 9 years ago

The syntax files form polyglot appears to be extracted from here : https://github.com/sheerun/vim-polyglot/blob/master/syntax/javascript.vim

rosshadden commented 8 years ago

vim-polyglot includes vim-javascript (or at least links to it in the readme). You have to disable javascript from polyglot:

let g:polyglot_disabled = [ 'markdown', 'javascript' ]

And by "have to", I mean "it doesn't make any sense whatsoever to have two different javascript syntax plugins". :smile: