1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-26 19:55:11 +01:00

runtime(typst): provide a formatlistpat

This commit is contained in:
Luca Saccarola 2024-11-28 21:42:57 +01:00
parent 65311c6f47
commit 0a7ae1fcb9

View file

@ -11,10 +11,12 @@ let b:did_ftplugin = 1
setlocal commentstring=//\ %s
setlocal comments=s1:/*,mb:*,ex:*/,://
setlocal formatoptions+=croq
setlocal formatoptions+=croqn
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
setlocal formatlistpat+=\\\|^\\s*[-+\]\\s\\+
setlocal suffixesadd=.typ
let b:undo_ftplugin = 'setl cms< com< fo< sua<'
let b:undo_ftplugin = 'setl cms< com< fo< flp< sua<'
if get(g:, 'typst_conceal', 0)
setlocal conceallevel=2