mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:40:03 +08:00
17 lines
597 B
VimL
17 lines
597 B
VimL
" Liquid
|
|
au BufNewFile,BufRead *.liquid set ft=liquid
|
|
|
|
au BufNewFile,BufRead */_layouts/*.html,*/_includes/*.html set ft=liquid
|
|
au BufNewFile,BufRead *.html,*.xml,*.textile
|
|
\ if getline(1) == '---' | set ft=liquid | endif
|
|
au BufNewFile,BufRead *.markdown,*.mkd,*.mkdn,*.md
|
|
\ if getline(1) == '---' |
|
|
\ let b:liquid_subtype = 'markdown' |
|
|
\ set ft=liquid |
|
|
\ endif
|
|
|
|
" Set subtype for Shopify alternate templates
|
|
au BufNewFile,BufRead */templates/**.liquid,*/layout/**.liquid,*/snippets/**.liquid
|
|
\ let b:liquid_subtype = 'html' |
|
|
\ set ft=liquid |
|