From 2d6a4a1680b78e1e6bea8d94ae14e39e2ebd36d0 Mon Sep 17 00:00:00 2001 From: gxlin Date: Fri, 20 Aug 2021 22:21:05 +0800 Subject: Add golang ctags config --- .ctags.d/go.ctags | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .ctags.d/go.ctags diff --git a/.ctags.d/go.ctags b/.ctags.d/go.ctags new file mode 100644 index 0000000..bb20134 --- /dev/null +++ b/.ctags.d/go.ctags @@ -0,0 +1,5 @@ +--langdef=Go +--langmap=Go:.go +--regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/d,func/ +--regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/d,var/ +--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/d,type/ -- cgit v1.2.3