diff options
Diffstat (limited to 'uvim/runtime/ftplugin/typst.vim')
| -rw-r--r-- | uvim/runtime/ftplugin/typst.vim | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/uvim/runtime/ftplugin/typst.vim b/uvim/runtime/ftplugin/typst.vim deleted file mode 100644 index 4ce9ed6788..0000000000 --- a/uvim/runtime/ftplugin/typst.vim +++ /dev/null @@ -1,39 +0,0 @@ -" Vim filetype plugin file -" Language: Typst -" Previous Maintainer: Gregory Anders -" Luca Saccarola <github.e41mv@aleeas.com> -" Maintainer: This runtime file is looking for a new maintainer. -" Last Change: 2025 Aug 05 -" Based on: https://github.com/kaarmu/typst.vim - -if exists('b:did_ftplugin') - finish -endif -let b:did_ftplugin = 1 - -setlocal commentstring=//\ %s -setlocal comments=s1:/*,mb:*,ex:*/,:// -setlocal formatoptions+=croqn -" Numbered Lists -setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* -" Unordered (-), Ordered (+) and definition (/) Lists -setlocal formatlistpat+=\\\|^\\s*[-+/\]\\s\\+ -setlocal suffixesadd=.typ - -let b:undo_ftplugin = 'setl cms< com< fo< flp< sua<' - -if get(g:, 'typst_conceal', 0) - setlocal conceallevel=2 - let b:undo_ftplugin .= ' cole<' -endif - -if has("folding") && get(g:, 'typst_folding', 0) - setlocal foldexpr=typst#foldexpr() - setlocal foldmethod=expr - let b:undo_ftplugin .= "|setl foldexpr< foldmethod<" -endif - -if !exists('current_compiler') - compiler typst - let b:undo_ftplugin ..= "| compiler make" -endif |
