Skip to content

Commit

Permalink
vim_fomatter: add 'info' field to completions
Browse files Browse the repository at this point in the history
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 971e573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formatters.go
Expand Up @@ -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("]]")
}
Expand Down

0 comments on commit 971e573

Please sign in to comment.