view runtime/ftplugin/typst.vim @ 36160:2a130d44c93d

Added tag v9.1.0735 for changeset 40505c50ef2deca5089adc801290bf95b402a081
author Christian Brabandt <cb@256bit.org>
date Tue, 17 Sep 2024 20:30:07 +0200
parents a6c234fffe90
children
line wrap: on
line source

" Vim filetype plugin file
" Language:    Typst
" Maintainer:  Gregory Anders
" Last Change: 2024-07-14
" Based on:    https://github.com/kaarmu/typst.vim

if exists('b:did_ftplugin')
  finish
endif
let b:did_ftplugin = 1

compiler typst

setlocal commentstring=//\ %s
setlocal comments=s1:/*,mb:*,ex:*/,://
setlocal formatoptions+=croq
setlocal suffixesadd=.typ

let b:undo_ftplugin = 'setl cms< com< fo< sua<'

if get(g:, 'typst_conceal', 0)
  setlocal conceallevel=2
  let b:undo_ftplugin .= ' cole<'
endif