From c3d5c2fc87212865ee73738cd381ddbaf8132c33 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Mon, 20 May 2024 05:08:49 -0700 Subject: runtime(typst): include basic typst ftplugin file (#14809) Reference: https://typst.app/docs/reference/syntax/#comments Signed-off-by: Riley Bruins Signed-off-by: Christian Brabandt --- runtime/ftplugin/typst.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/ftplugin/typst.vim (limited to 'runtime') diff --git a/runtime/ftplugin/typst.vim b/runtime/ftplugin/typst.vim new file mode 100644 index 0000000000..c2d7811ace --- /dev/null +++ b/runtime/ftplugin/typst.vim @@ -0,0 +1,14 @@ +" Vim filetype plugin +" Language: typst +" Maintainer: Riley Bruins +" Last Change: 2024 May 19 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// +setlocal commentstring=//\ %s + +let b:undo_ftplugin = 'setl com< cms<' -- cgit v1.2.3