neoclide / coc-html

Html language server extension for coc.nvim.
208 stars 6 forks source link

Add blade template support #21

Closed yaegassy closed 4 years ago

yaegassy commented 4 years ago

Description

I'm using coc-html + coc-prettier.

There is a blade template in the Laravel (PHP Web Framework).

The blade template is similar to the "Django HTML" template.

Currently, I use coc-html by mapping to html with g:coc_filetype_map as follows.

let g:coc_filetype_map = {
  \ 'blade': 'html',
  \ }

However, I don't want to use coc-prettier in the blade template, but the prettier works in this setting.

So I created a "PR" to officially support the blade file type in coc-html.

Since htmldjango has already been added, we would like to add blade as well.

PR

https://github.com/neoclide/coc-html/pull/20

Misc

I use vim-blade for file type support in the blade template.

https://github.com/jwalton512/vim-blade

Notes

If everything is OK, please update the version of package.json and "publish to npm" after the merge.