You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, for instance, a WordPress function (a full example wordpress.json file is included in this repo):
{
"get_bloginfo(" : {
"kind" : "f",
"menu" : "string $show, string $filter | string",
"info" : "Retrieves information about the current site.",
}
}
Or, as tab-separated values:
get_bloginfo( f string $show, string $filter | string Retrieves information about the current site.
See :help complete-items for more info:
word the text that will be inserted, mandatory
kind single letter indicating the type of completion
menu extra text for the popup menu, displayed after "word"
or "abbr"
info more information about the item, can be displayed in a
preview window
Your custom completion file will show up as a "full" complete menu similar to the omnicomplete menu, like so:
Options
By itself, this plugin does nothing. Only by setting a couple dictionaries in your .vimrc will <C-X><C-U> use the completion function generated by your file.
g:customcpt_funcs (required): A Dictionary with a function name for a key and a List of files to use for completion with it