From 9931e0888b2419326ae10ebbfae532261c5c125f Mon Sep 17 00:00:00 2001 From: Karel Kočí Date: Thu, 30 Jun 2016 16:11:56 +0200 Subject: Fix submodules --- vim/bundle/vim-snippets/UltiSnips/proto.snippets | 52 ------------------------ 1 file changed, 52 deletions(-) delete mode 100644 vim/bundle/vim-snippets/UltiSnips/proto.snippets (limited to 'vim/bundle/vim-snippets/UltiSnips/proto.snippets') diff --git a/vim/bundle/vim-snippets/UltiSnips/proto.snippets b/vim/bundle/vim-snippets/UltiSnips/proto.snippets deleted file mode 100644 index 923be57..0000000 --- a/vim/bundle/vim-snippets/UltiSnips/proto.snippets +++ /dev/null @@ -1,52 +0,0 @@ -priority -50 - -global !p -from vimsnippets import complete - -FIELD_TYPES = [ - 'double', - 'float', - 'int32', - 'int64', - 'uint32', - 'uint64', - 'sint32', - 'sint64', - 'fixed32', - 'fixed64', - 'sfixed32', - 'sfixed64', - 'bool', - 'string', - 'bytes'] -endglobal - -snippet mess "Proto message" b -// ${2:TODO(`whoami`): Describe this message.} -message ${1:Name} { - $0 - - // Next available id: 1 -} -endsnippet - -snippet reqf "Required field" b -// ${4:TODO(`whoami`): Describe this field.} -optional ${1}`!p snip.rv = complete(t[1], FIELD_TYPES)` ${2:name} = ${3:1}; // Required -endsnippet - -snippet optf "Optional field" b -// ${4:TODO(`whoami`): Describe this field.} -optional ${1}`!p snip.rv = complete(t[1], FIELD_TYPES)` ${2:name} = ${3:1}; -endsnippet - -snippet repf "Repeated field" b -// ${4:TODO(`whoami`): Describe this field.} -repeated ${1}`!p snip.rv = complete(t[1], FIELD_TYPES)` ${2:name} = ${3:1}; -endsnippet - -snippet enum "Enumeration" b -// ${2:TODO(`whoami`): Describe this enum.} -enum ${1:Name} { -} -endsnippet -- cgit v1.3