yaegassy / coc-volar

Volar (Fast Vue Language Support) extension for coc.nvim
https://www.npmjs.com/package/@yaegassy/coc-volar
MIT License
272 stars 6 forks source link

syntax highlight randomly crashed when editing/scrolling through vue SFC #307

Closed lzl19971215 closed 1 year ago

lzl19971215 commented 1 year ago

Hi, I have installed coc-volar and enable take over mode in my vue project. I find volar syntax highlight crashed randomly when I edit or browse through a SFC vue file: image

this is my coc log: image

Can anyone help? Thanks!

yaegassy commented 1 year ago

I think notifiacation: highlight [] you are seeing in your logs is due to the inclusion of this setting shown in the README for coc.nvim. However, I don't think this is a particular problem, but if you are concerned about that log, try removing it from the configuration file.

I think the frequent crashe of syntax highlighting in Vue files is other problem. Try adding a syntax highlighting plugin for Vue or use nvim-treesitter

lzl19971215 commented 1 year ago

Thanks a lot, adding a syntax highlighting plugin for Vue can solve this problem!