We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4431bf1 commit b997a86Copy full SHA for b997a86
neosnippets/go.vim
@@ -34,7 +34,7 @@ function! g:NeosnippetSnippets_Goiferr() abort
34
if t =~# '\v^\s*error\s*$'
35
let v = 'err'
36
elseif t =~# '\v^\s*string\s*$'
37
- let v = '""'
+ let v = '"${1\}"'
38
elseif t =~# '\v^\s*int\d*\s*$'
39
let v = '0'
40
elseif t =~# '\v^\s*bool\s*$'
@@ -45,5 +45,5 @@ function! g:NeosnippetSnippets_Goiferr() abort
45
call add(rets, v)
46
endfor
47
48
- return '${1:' . join(rets, ", ") . '}'
+ return '${1:' . join(rets, ", ") . '${0\}}'
49
endfunction
0 commit comments