towolf / vim-helm

vim syntax for helm templates (yaml + gotmpl + sprig + custom)
Other
203 stars 22 forks source link

Readme file precision for .tpl file #2

Closed SamuelTissot closed 6 years ago

SamuelTissot commented 6 years ago

Hello,

I wanted to do a small PR to add a little precision in the README file, for the new user. (but it seems you are not accepting PR?)

changed proposed

" set the .tpl file type to yaml to get basic syntax and indentation
autocmd BufNewFile,BufRead *.tpl   set filetype=yaml
" set the file type to helm to augment the syntax 
autocmd BufRead,BufNewFile */templates/*.yaml,*/templates/*.tpl set ft=helm

this way it would colorize the Helm .tpl files

thank you for your work

towolf commented 6 years ago

I don't accept pull requests?

I added ,*/templates/*.tpl to the recommended autocommand. The other line should not be necessary since we are importing yaml.vim anyway in here https://github.com/towolf/vim-helm/blob/22ffff7a98d3e836e6be595ec346df71b0b5e193/syntax/helm.vim#L15

SamuelTissot commented 6 years ago

Thanks,

about

I don't accept pull requests?

sorry, noop issue, my bad.