coc-homeassistant icon indicating copy to clipboard operation
coc-homeassistant copied to clipboard

please help with filetype

Open prankousky opened this issue 2 years ago • 1 comments

Hi everybody,

I recently stumbled across this project and had to try it. After installing coc.nvim and populating the CocConfig, I realized nothing would work when entering a .yaml file in my Home Assistant directory.

Eventually, I tried :set filetype=home-assistant, and all the sudden got completion working. However, this removed syntax highlighting for .yaml, so the entire file was rendering in one single color (instead of, for example - (orange) service (teal) : (orange) media_player.turn_off (green).

Is there a way to use this and keep syntax highlighting for yaml working at the same time?

Thank you in advance for your ideas :)

prankousky avatar Apr 08 '22 07:04 prankousky

You can fix up the syntax highlighting with :set syntax=yaml

cjd avatar May 24 '23 10:05 cjd