Snippets in current scope
In order to complete snippets I have this in my vimrc
set completefunc=
function! SnipComplete(
if a:findstart
let line = getline('.')
let start = col('.') - 1
while start > 0 && line[start - 1] =~ '\a'
let start -= 1
endwhile
return start
else
let suggestions = []
for entry in keys(UltiSnips_
if entry =~ '^' . a:base
endif
endfor
return suggestions
endfunction
It works fine but I was wondering whether is possible for the popup menu not only to show the snippet "trigger" but also the snippet "description".
Thanks!
PS: There is a typo in Section 3.5 of the documentation. Where it says:
UltiSnips provides two functions for extending core functionality.
It should say:
UltiSnips provides three functions for extending core functionality.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- SirVer
- Solved:
- Last query:
- Last reply:
This question was reopened
- by petobens