summaryrefslogtreecommitdiffstats
path: root/ftplugin/bicep.vim
blob: 112c429e0c7016dc6e2a09980c5f7482bfff67d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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