dotfiles/.vim/pack/plugins/start/vim-hugo/ftplugin/htmlhugo.vim
2024-12-16 19:13:26 +01:00

20 lines
446 B
VimL

if exists('b:did_ftplugin')
finish
endif
runtime! ftplugin/html.vim
setlocal path+=layouts,resources,content,archetypes,static,data,layouts/_default,layouts/partials
setlocal suffixesadd=.html
setlocal commentstring={{/*%s*/}}
if exists('loaded_matchit')
let b:match_words=b:match_words.','
\.'\<\%(define\|block\|with\|range\|if\)\>:'
\.'\<else\>:'
\.'\<end\>,'
endif
let b:undo_ftplugin = 'setlocal com< path<'