robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
7945732ed7
master
1" Vim filetype plugin file 2" Language: Tera 3" Maintainer: Muntasir Mahmud <muntasir.joypurhat@gmail.com> 4" Last Change: 2025 Mar 08 5" 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121) 6" 2026 Jun 27 by Vim Project (add recommended style guard) 7 8if exists ( "b:did_ftplugin" ) 9finish 10endif 11let b: did_ftplugin = 1 12 13let s: cpo_save = & cpo 14set cpo & vim 15 16setlocal autoindent 17 18setlocal commentstring = {#\ %s\ #} 19setlocal comments = s:{#,e:#} 20 21if exists ( "loaded_matchit" ) 22let b: match_ignorecase = 0 23let b: match_words = '{#:##\|#},{% *if:{% *else\>:{% *elif\>:{% *endif %},{% *for\>:{% *endfor %},{% *macro\>:{% *endmacro %},{% *block\>:{% *endblock %},{% *filter\>:{% *endfilter %},{% *set\>:{% *endset %},{% *raw\>:{% *endraw %},{% *with\>:{% *endwith %}' 24endif 25 26setlocal includeexpr = substitute (v:fname,'\\( [ ^. ] * \\)$','\\1','g') 27setlocal suffixesadd = .tera 28 29if get ( g:, 'tera_recommended_style' , 30 \get ( g:, 'filetype_recommended_style' , 1 )) 31setlocal expandtab 32setlocal shiftwidth = 2 33setlocal softtabstop = 2 34endif 35 36let b: undo_ftplugin = "setlocal autoindent< commentstring< comments< " .. 37 \"includeexpr< suffixesadd< expandtab< shiftwidth< softtabstop<" 38let b: undo_ftplugin .= "|unlet! b:match_ignorecase b:match_words" 39 40let & cpo = s: cpo_save 41unlet s: cpo_save