From a68be9b840f137ad7dd46f409ea4f94cb0d6cde8 Mon Sep 17 00:00:00 2001 From: Igor Prusov Date: Mon, 5 Aug 2024 03:55:24 +0300 Subject: [PATCH] Add Device Tree Source(DTS) support --- autoload/tagbar/types/uctags.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autoload/tagbar/types/uctags.vim b/autoload/tagbar/types/uctags.vim index 06625fe8..08de0355 100644 --- a/autoload/tagbar/types/uctags.vim +++ b/autoload/tagbar/types/uctags.vim @@ -508,6 +508,14 @@ function! tagbar#types#uctags#init(supported_types) abort \ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 1} \ ] let types.dosbatch = type_dosbatch + " DTS {{{1 + let type_dts = tagbar#prototypes#typeinfo#new() + let type_dts.ctagstype = 'dts' + let type_dts.kinds = [ + \ {'short' : 'l', 'long' : 'labels', 'fold' : 0, 'stl' : 1}, + \ {'short' : 'p', 'long' : 'phandlers', 'fold' : 0, 'stl' : 1} + \ ] + let types.dts = type_dts " Eiffel {{{1 let type_eiffel = tagbar#prototypes#typeinfo#new() let type_eiffel.ctagstype = 'eiffel'