mirror of
https://github.com/neovim/neovim.git
synced 2026-07-23 01:12:49 +00:00
- 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>
18 lines
473 B
VimL
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<"
|