Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
typst.vim40 linesDownload Raw Back to ftplugin
1" Vim filetype plugin file2" Language:    Typst3" Previous Maintainer:  Gregory Anders4"                       Luca Saccarola <github.e41mv@aleeas.com>5" Maintainer:  This runtime file is looking for a new maintainer.6" Last Change: 2025 Aug 057" Based on:    https://github.com/kaarmu/typst.vim8 9if exists('b:did_ftplugin')10  finish11endif12let b:did_ftplugin = 113 14setlocal commentstring=//\ %s15setlocal comments=s1:/*,mb:*,ex:*/,://16setlocal formatoptions+=croqn17" Numbered Lists18setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*19" Unordered (-), Ordered (+) and definition (/) Lists20setlocal formatlistpat+=\\\|^\\s*[-+/\]\\s\\+21setlocal suffixesadd=.typ22 23let b:undo_ftplugin = 'setl cms< com< fo< flp< sua<'24 25if get(g:, 'typst_conceal', 0)26  setlocal conceallevel=227  let b:undo_ftplugin .= ' cole<'28endif29 30if has("folding") && get(g:, 'typst_folding', 0)31    setlocal foldexpr=typst#foldexpr()32    setlocal foldmethod=expr33    let b:undo_ftplugin .= "|setl foldexpr< foldmethod<"34endif35 36if !exists('current_compiler')37  compiler typst38  let b:undo_ftplugin ..= "| compiler make"39endif40 
codekingpro/portable-devtools · Team Ai