typst.vim 450 B

1234567891011121314151617181920
  1. " Vim indent file
  2. " Language: Typst
  3. " Previous Maintainer: Gregory Anders
  4. " Maintainer: Luca Saccarola <github.e41mv@aleeas.com>
  5. " Last Change: 2024 Dec 09
  6. " Based on: https://github.com/kaarmu/typst.vim
  7. if exists('b:did_indent')
  8. finish
  9. endif
  10. let b:did_indent = 1
  11. setlocal expandtab
  12. setlocal softtabstop=2
  13. setlocal shiftwidth=2
  14. setlocal autoindent
  15. setlocal indentexpr=typst#indentexpr()
  16. let b:undo_indent = 'setl et< sts< sw< ai< inde<'