document IsExpandable() to check if snippet is expandable without expanding (#957)
Solves https://github.com/SirVer/ultisnips/pull/790#issuecomment-377808784
This commit is contained in:
parent
b11b397d65
commit
9777b6ec40
@ -47,8 +47,9 @@ UltiSnips *snippet* *snippets* *UltiSnips*
|
|||||||
5. UltiSnips and Other Plugins |UltiSnips-other-plugins|
|
5. UltiSnips and Other Plugins |UltiSnips-other-plugins|
|
||||||
5.1 Existing Integrations |UltiSnips-integrations|
|
5.1 Existing Integrations |UltiSnips-integrations|
|
||||||
5.2 Extending UltiSnips |UltiSnips-extending|
|
5.2 Extending UltiSnips |UltiSnips-extending|
|
||||||
6. Helping Out |UltiSnips-helping|
|
6. FAQ |UltiSnips-FAQ|
|
||||||
7. Contributors |UltiSnips-contributors|
|
7. Helping Out |UltiSnips-helping|
|
||||||
|
8. Contributors |UltiSnips-contributors|
|
||||||
|
|
||||||
This plugin only works if 'compatible' is not set.
|
This plugin only works if 'compatible' is not set.
|
||||||
{Vi does not have any of these features}
|
{Vi does not have any of these features}
|
||||||
@ -1791,7 +1792,18 @@ contact us on github if you integrate UltiSnips with your plugin so it can be
|
|||||||
listed in the docs.
|
listed in the docs.
|
||||||
|
|
||||||
=============================================================================
|
=============================================================================
|
||||||
6. Helping Out *UltiSnips-helping*
|
6. FAQ *UltiSnips-FAQ*
|
||||||
|
|
||||||
|
Q: Do I have to call UltiSnips#ExpandSnippet() to check if a snippet is
|
||||||
|
expandable ? Is there instead an analog of neosnippet#expandable ?
|
||||||
|
A: Yes there is, try
|
||||||
|
|
||||||
|
function UltiSnips#IsExpandable()
|
||||||
|
return !empty(UltiSnips#SnippetsInCurrentScope())
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
=============================================================================
|
||||||
|
7. Helping Out *UltiSnips-helping*
|
||||||
|
|
||||||
UltiSnips needs the help of the Vim community to keep improving. Please
|
UltiSnips needs the help of the Vim community to keep improving. Please
|
||||||
consider joining this effort by providing new features or bug reports.
|
consider joining this effort by providing new features or bug reports.
|
||||||
@ -1805,7 +1817,7 @@ You can contribute by fixing or reporting bugs in our issue tracker:
|
|||||||
https://github.com/sirver/ultisnips/issues
|
https://github.com/sirver/ultisnips/issues
|
||||||
|
|
||||||
=============================================================================
|
=============================================================================
|
||||||
7. Contributors *UltiSnips-contributors*
|
8. Contributors *UltiSnips-contributors*
|
||||||
|
|
||||||
UltiSnips has been started and maintained from Jun 2009 - Dec 2015 by Holger
|
UltiSnips has been started and maintained from Jun 2009 - Dec 2015 by Holger
|
||||||
Rapp (@SirVer, SirVer@gmx.de). It is now maintained by Stanislav Seletskiy
|
Rapp (@SirVer, SirVer@gmx.de). It is now maintained by Stanislav Seletskiy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user