typst.vim (473B)
1 " Vim indent file 2 " Language: Typst 3 " Maintainer: Maxim Kim <habamax@gmail.com> 4 " Previous Maintainer: Gregory Anders 5 " Luca Saccarola <github.e41mv@aleeas.com> 6 " Last Change: 2026 Jun 29 7 " Based on the indent plugin from 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 autoindent 15 setlocal indentexpr=typst#indentexpr() 16 17 let b:undo_indent = "setl ai< inde<"