typst.vim (525B)
1 " Vim indent file 2 " Language: Typst 3 " Previous Maintainer: Gregory Anders 4 " Luca Saccarola <github.e41mv@aleeas.com> 5 " Maintainer: This runtime file is looking for a new maintainer. 6 " Last Change: 2025 Aug 05 7 " Based on: https://github.com/kaarmu/typst.vim 8 9 if exists('b:did_indent') 10 finish 11 endif 12 let b:did_indent = 1 13 14 setlocal expandtab 15 setlocal softtabstop=2 16 setlocal shiftwidth=2 17 setlocal autoindent 18 setlocal indentexpr=typst#indentexpr() 19 20 let b:undo_indent = 'setl et< sts< sw< ai< inde<'