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:
parent
65311c6f47
commit
0a7ae1fcb9
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue