Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlighting failure with vim-vue #165

Open
avral opened this issue Apr 30, 2018 · 3 comments
Open

Highlighting failure with vim-vue #165

avral opened this issue Apr 30, 2018 · 3 comments

Comments

@avral
Copy link

avral commented Apr 30, 2018

I'm use this configs:
Plug 'othree/yajs.vim'
Plug 'othree/javascript-libraries-syntax.vim'
Plug 'othree/es.next.syntax.vim'
Plug 'posva/vim-vue'

autocmd BufRead,BufNewFile *.vue setlocal filetype=vue.html.javascript.css

when im add javascript filetype for *.vue fiels i see this failure:
screen shot 2018-04-30 at 16 25 36

but when i disable javascript setting, all is ok..
autocmd BufRead,BufNewFile *.vue setlocal filetype=vue.html.css
screen shot 2018-04-30 at 16 27 08

neovim v0.2.2

@othree
Copy link
Owner

othree commented Apr 30, 2018

I don't think javascript is necessary here.
The problem is caused by the setting will let Vim load the built-in runtime Vim script files in different order. And the final result is the built-in have higher priority. And led to the syntax error.

@avral
Copy link
Author

avral commented Apr 30, 2018

@othree, how can i fix this? Yes, maybe javascript is not necessary here, but without javascript autocomplete for js(tern) not working..

@othree
Copy link
Owner

othree commented Jul 2, 2018

Hi

I believe the htmlcomplete function will call javascriptcomplete#CompleteJS
Maybe you can just overwrite it1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants