I installed the plugin 'posva/vim-vue' for syntax highlighting .vue files and now i want to get autocompletion to work on them as well. I've noticed this filetype doesn't trigger the YCM tern server as .js files do. I think this is why it is not working.
How can i get this to work?
Ycm Debug Info:
-- Client logfile: /tmp/ycm_xqlu84ry.log
-- Server Python interpreter: /usr/bin/python3
-- Server Python version: 3.6.5
-- Server has Clang support compiled in: False
-- Clang version: None
-- No extra configuration file found
-- Server running at: http://127.0.0.1:51113
-- Server process ID: 8730
-- Server logfiles:
-- /tmp/ycmd_51113_stdout_jvx21s2h.log
-- /tmp/ycmd_51113_stderr_wx0dad7e.log
You need to add javascript to the filetype:
autocmd BufEnter,BufRead *.vue set filetype=vue.javascript
However, I don't think Tern really support Vue so I wouldn't expect this to work too well.
Closing as your question has been answered.
Most helpful comment
You need to add
javascriptto the filetype:However, I don't think Tern really support Vue so I wouldn't expect this to work too well.