Permalink
Browse files

vim_fomatter: add 'info' field to completions

this allows to see the prototype in the preview window
if 'completeopts' contains 'preview'
  • Loading branch information...
ebfe committed Mar 30, 2012
1 parent 021f6a9 commit 971e57359aa89ae0624279d6a0526aa285aa2666
Showing with 1 addition and 1 deletion.
  1. +1 −1 formatters.go
View
@@ -65,7 +65,7 @@ func (*vim_formatter) write_candidates(candidates []candidate, num int) {
if c.Class == decl_func {
abbr = fmt.Sprintf("%s %s%s", c.Class, c.Name, c.Type[len("func"):])
}
- fmt.Printf("{'word': '%s', 'abbr': '%s'}", word, abbr)
+ fmt.Printf("{'word': '%s', 'abbr': '%s', 'info': '%s'}", word, abbr, abbr)
}
fmt.Printf("]]")
}

0 comments on commit 971e573

Please sign in to comment.