summaryrefslogtreecommitdiffstats
path: root/ftplugin/bicep.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2022-04-18 12:08:27 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2022-04-18 12:08:27 +0200
commitdb7bb8ba22f5798bf3abe9f786bc6e6d002725f8 (patch)
treec9d2fd8bead22a93f2c0eb0bd8abe14efe32f509 /ftplugin/bicep.vim
parentaae85fe8c2a5878aee89ff8025306f3142962b5f (diff)
downloadvim-polyglot-db7bb8ba22f5798bf3abe9f786bc6e6d002725f8.tar.gz
vim-polyglot-db7bb8ba22f5798bf3abe9f786bc6e6d002725f8.zip
Update
Diffstat (limited to 'ftplugin/bicep.vim')
-rw-r--r--ftplugin/bicep.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/ftplugin/bicep.vim b/ftplugin/bicep.vim
new file mode 100644
index 00000000..112c429e
--- /dev/null
+++ b/ftplugin/bicep.vim
@@ -0,0 +1,21 @@
+if polyglot#init#is_disabled(expand('<sfile>:p'), 'bicep', 'ftplugin/bicep.vim')
+ finish
+endif
+
+" bicep.vim - basic bicep integration
+" Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
+
+if exists('b:did_ftplugin') || v:version < 700 || &compatible
+ finish
+endif
+let b:did_ftplugin = 1
+
+let s:cpo_save = &cpoptions
+set cpoptions&vim
+
+" Set the commentstring
+setlocal commentstring=//%s
+let b:undo_ftplugin = ' commentstring<'
+
+let &cpoptions = s:cpo_save
+unlet s:cpo_save