Files
neovim/runtime/indent/typst.vim
zeertzjq 567053bb3c vim-patch:dd89754: runtime(typst): Improve ftplugin, and syntax file
- Move whitespace formatting settings from the indent to the filetype
  plugin behind a "typst_recommended_style" config option.
- Set browsefilter
- Improve syntax file

Thanks to Maxim Kim for taking on maintainership of the typst runtime
files.

related: vim/vim#20036
closes:  vim/vim#20077

dd8975428b

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Co-authored-by: Maxim Kim <habamax@gmail.com>
2026-07-02 08:14:48 +08:00

18 lines
473 B
VimL

" Vim indent file
" Language: Typst
" Maintainer: Maxim Kim <habamax@gmail.com>
" Previous Maintainer: Gregory Anders
" Luca Saccarola <github.e41mv@aleeas.com>
" Last Change: 2026 Jun 29
" Based on the indent plugin from https://github.com/kaarmu/typst.vim
if exists("b:did_indent")
finish
endif
let b:did_indent = 1
setlocal autoindent
setlocal indentexpr=typst#indentexpr()
let b:undo_indent = "setl ai< inde<"