summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/meson.vim3
-rw-r--r--ftplugin/plantuml.vim8
-rw-r--r--ftplugin/terraform.vim2
-rw-r--r--ftplugin/typescript.vim2
4 files changed, 9 insertions, 6 deletions
diff --git a/ftplugin/meson.vim b/ftplugin/meson.vim
index 2f4abd9b..e401158d 100644
--- a/ftplugin/meson.vim
+++ b/ftplugin/meson.vim
@@ -10,6 +10,9 @@ let b:did_ftplugin = 1
let s:keepcpo= &cpo
set cpo&vim
+setlocal commentstring=#\ %s
+setlocal comments=:#
+
setlocal shiftwidth=2
setlocal softtabstop=2
diff --git a/ftplugin/plantuml.vim b/ftplugin/plantuml.vim
index b17f88ba..9db919de 100644
--- a/ftplugin/plantuml.vim
+++ b/ftplugin/plantuml.vim
@@ -37,10 +37,10 @@ endif
setlocal comments=s1:/',mb:',ex:'/,:' commentstring=/'%s'/ formatoptions-=t formatoptions+=croql
-let b:endwise_addition = '\=index(["note","legend"], submatch(0))!=-1 ? "end " . submatch(0) : "end"'
-let b:endwise_words = 'loop,group,alt,note,legend'
-let b:endwise_pattern = '^\s*\zs\<\(loop\|group\|alt\|note\ze[^:]*$\|legend\)\>.*$'
-let b:endwise_syngroups = 'plantumlKeyword'
+let b:endwise_addition = '\=index(["dot","mindmap","uml","salt","wbs"], submatch(0))!=-1 ? "@end" . submatch(0) : index(["note","legend"], submatch(0))!=-1 ? "end " . submatch(0) : "end"'
+let b:endwise_words = 'loop,group,alt,note,legend,startdot,startmindmap,startuml,startsalt,startwbs'
+let b:endwise_pattern = '^\s*\zs\(loop\|group\|alt\|note\ze[^:]*$\|legend\|@start\zs\(dot\|mindmap\|uml\|salt\|wbs\)\)\>.*$'
+let b:endwise_syngroups = 'plantumlKeyword,plantumlPreProc'
let &cpoptions = s:cpo_save
unlet s:cpo_save
diff --git a/ftplugin/terraform.vim b/ftplugin/terraform.vim
index 4426a890..3786648f 100644
--- a/ftplugin/terraform.vim
+++ b/ftplugin/terraform.vim
@@ -47,7 +47,7 @@ endif
let s:cpo_save = &cpoptions
set cpoptions&vim
-command! -nargs=+ -complete=customlist,terraform#commands -buffer Terraform execute '!terraform '.<q-args>. ' -no-color'
+command! -nargs=+ -complete=custom,terraform#commands -buffer Terraform execute '!terraform '.<q-args>. ' -no-color'
command! -nargs=0 -buffer TerraformFmt call terraform#fmt()
let b:undo_ftplugin .= '|delcommand Terraform|delcommand TerraformFmt'
diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim
index 60992bee..148eff9e 100644
--- a/ftplugin/typescript.vim
+++ b/ftplugin/typescript.vim
@@ -34,7 +34,7 @@ endfunction
set path+=./node_modules/**,node_modules/**
set include=import\_s.\\zs[^'\"]*\\ze
set includeexpr=TsIncludeExpr(v:fname)
-set suffixesadd=.ts
+set suffixesadd+=.ts
"
" TagBar