rodjek / vim-puppet

Puppet niceties for your Vim setup
Apache License 2.0
501 stars 137 forks source link

Detect original filetype ftdetect #156

Open shadowwa opened 1 week ago

shadowwa commented 1 week ago

I've redone the subtype detection completely in ftdetect.[vim|lua]. This just set the filetype as 'subtype.type' and let vim loads ftplugins and syntax file for both filetype.

I didn't add new versions of vim to the workflow of this MR but ran tests on a separate branch, you can see the results there: https://github.com/shadowwa/vim-puppet/actions/runs/10981471798 With this, I have syntax highlighting + linting from ALE + lsp from COC for the subtype lanquage.

this should close https://github.com/rodjek/vim-puppet/issues/154 and https://github.com/rodjek/vim-puppet/issues/148