Neovim setup?
im-n1 opened this issue · 6 comments
Hi I'm trying to set this plugin up on Neovim and it doesn't highlight work at all. When I turn on debug ths is what I get
"~/workspace/richy/app/app/richy/core/static/js/components/item_chart.vue" 478L, 13488B
[vim-vue-plugin] pug: syntax not found in ['$VIMRUNTIME', '$VIM/vimfiles', '$HOME/.vim']
[vim-vue-plugin] pug: load full instead
[vim-vue-plugin] pug: load full
"~/workspace/richy/app/app/richy/core/static/js/components/the_eye.vue" 100L, 2056B
[vim-vue-plugin] pug: syntax not found in ['$VIMRUNTIME', '$VIM/vimfiles', '$HOME/.vim']
[vim-vue-plugin] pug: load full instead
[vim-vue-plugin] pug: load full
"~/workspace/richy/app/app/richy/core/static/js/components/chart.vue" 122L, 2681B
[vim-vue-plugin] pug: syntax not found in ['$VIMRUNTIME', '$VIM/vimfiles', '$HOME/.vim']
[vim-vue-plugin] pug: load full instead
[vim-vue-plugin] pug: load full
[vim-vue-plugin] html: load default
What exacty I'm missing?
Thanks in advance.
Hi, there. Sorry for the late response.
Could you confirm if it works with the default config and a simple .vue file? Is there no highlight at all, or is it broken?
Neovim seems to work for me with the default config
let g:vim_vue_plugin_config = {
\'syntax': {
\ 'template': ['html'],
\ 'script': ['javascript'],
\ 'style': ['css'],
\},
\'full_syntax': [],
\'initial_indent': [],
\'attribute': 0,
\'keyword': 0,
\'foldexpr': 0,
\'debug': 0,
\}
Sorry for the late response :)
Tried but sadly <script>
is not highlighted at all.
I see.
The script part uses the same basic syntax as a normal javascript file. You can try the full_syntax
to include highlights from plugins.
let g:vim_vue_plugin_config = {
\'syntax': {
\ 'template': ['html'],
\ 'script': ['javascript', 'typescript'],
\ 'style': ['css'],
\},
\'full_syntax': ['javascript', 'typescript'],
\}
You can also try nvim-treesitter
with :TSInstall vue
, but not enable both plugins at the same time.
Just tried treesitter's vue
and it's amazing. We are done here, thanks.