From a28c5468a0f249ba7f8d29d3278f1826bb7b6ac6 Mon Sep 17 00:00:00 2001 From: Antony Southworth Date: Mon, 12 Apr 2021 10:44:04 +1200 Subject: [PATCH] add terraform --- autoload/tagbar/types/uctags.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/autoload/tagbar/types/uctags.vim b/autoload/tagbar/types/uctags.vim index 6f9d27c7..1c312506 100644 --- a/autoload/tagbar/types/uctags.vim +++ b/autoload/tagbar/types/uctags.vim @@ -1053,6 +1053,25 @@ function! tagbar#types#uctags#init(supported_types) abort \ {'short' : 'p', 'long' : 'procedures', 'fold' : 0, 'stl' : 1} \ ] let types.tcl = type_tcl + " Terraform (HCL) {{{1 + let type_tf = tagbar#prototypes#typeinfo#new() + let type_tf.ctagstype = 'tf' + let type_tf.kinds = [ + \ 'r:Resource', + \ 'R:Resource', + \ 'd:Data', + \ 'D:Data', + \ 'v:Variable', + \ 'V:Variable', + \ 'p:Provider', + \ 'P:Provider', + \ 'm:Module', + \ 'M:Module', + \ 'o:Output', + \ 'O:Output', + \ 'f:TFVar', + \ 'F:TFVar' + \ ] " TypeScript {{{1 let type_ts = tagbar#prototypes#typeinfo#new() let type_ts.ctagstype = 'typescript'