Commit Graph

55 Commits

Author SHA1 Message Date
chemzqm
4e2e897de8 change g:current_ulti_dict_all to g:current_ulti_dict_info 2016-01-11 23:58:42 +08:00
chemzqm
6a69a44154 add all param to UltiSnips#SnippetsInCurrentScope 2015-12-28 20:01:26 +08:00
Qiming zhao
3a70765f40 syntax highlight for unite ultisnips 2015-12-21 22:06:16 +08:00
JarrodCTaylor
53571bf4f5 Refactor: More descriptive method name 2015-11-14 16:52:55 -06:00
JarrodCTaylor
1d4d8b0490 Enhancement: Align snippet names in unite source options 2015-11-14 10:25:20 -06:00
Stanislav Seletskiy
76ebfec3cf autotrigger: make snippets expand without <tab> 2015-10-09 16:00:24 +06:00
Holger Rapp
e48d8a28e5 Rollback "Merge support for auto expand."
Due to performance degradation reported in #552.

This reverts commit 490430f91d, reversing
changes made to cf2c473a8e.
2015-08-21 07:38:34 +02:00
Holger Rapp
490430f91d Merge support for auto expand. 2015-08-17 08:30:59 +02:00
Holger Rapp
cf2c473a8e Define UltiSnips#FileTypeChanged always
This is called via ftdetect/UltiSnips.vim, and needs to be defined
also if UltiSnips fails to initialize, e.g. because of missing Python
support.
2015-08-12 06:59:04 +02:00
Daniel Hahler
5e2f58c35f Define UltiSnips#FileTypeChanged always
This is called via ftdetect/UltiSnips.vim, and needs to be defined
also if UltiSnips fails to initialize, e.g. because of missing Python
support.
2015-08-10 22:46:05 +02:00
Daniel Hahler
4a302149e8 Remove autoload/UltiSnips/bootstrap.vim again
This seems to have been re-added accidentally in 3c4ac11, after it was
removed in becab78.
2015-08-10 22:31:22 +02:00
Stanislav Seletskiy
f80414fac5 prototype of autotrigger 2015-08-03 14:41:25 +06:00
Stanislav Seletskiy
3c4ac11af3 fix python3, finally 2015-07-29 20:08:49 +06:00
Holger Rapp
34679be7ae Updated ChangeLog.
[ci skip]
2015-07-21 14:29:50 +02:00
Holger Rapp
6b12b11411 Only set autocommands when there are snippets.
This speeds up cursor movement when there is no snippet activated.

Fixes #518.
2015-07-11 17:11:04 +02:00
Holger Rapp
2ed217a059 Remove deprecated functions like a boss. 2015-07-11 16:36:09 +02:00
Holger Rapp
becab789a8 Remove bootstrap.vim. Simplify startup.
The python module is now pulled in autoload/UltiSnips.vim. This means
that parsing of the .vimrc will only map the keys and set some options -
very cheap.

Unfortunately, the autocommands set up in plugin/UltiSnips.vim pulls in
the python code basically immediately still.
2015-07-11 16:17:50 +02:00
Holger Rapp
b13015d47a Remove sys.path manipulations.
They were only needed for < 7.4 Vims which are no longer supported.
2015-07-11 14:18:53 +02:00
Holger Rapp
c3a0924b77 Require Vim 7.4 in preparation of removal of compatibility features. 2015-06-11 07:53:47 +02:00
Daniel Hahler
800a54da17 bootstrap: use WarningMsg with python warning message 2015-04-18 22:56:57 +02:00
Daniel Hahler
ac42c83a70 bootstrap: verify that g:UltiSnipsUsePythonVersion is available
Without this, UltiSnips will throw a lot of errors in case it's not
available.

This does not look at `g:UltiSnipsNoPythonWarning`, because it is not
auto-detected, but provided by the user's config.
2015-04-18 22:56:09 +02:00
Holger Rapp
99eede1bf6 Started to test py2 and py3 on travis now.
I also learned that Vim 7.3 does not seem to be working at all anymore.
Fixes a bug that only happens with python3.
2015-04-18 17:15:05 +02:00
KazuakiM
3ae9b48cf9 Delete default setting in neocomplete/sources/ultisnips.vim 2015-04-12 19:38:33 +09:00
Holger Rapp
e1436a8aeb Accept numbers and text for disabling snipMate. 2015-01-15 08:17:37 +01:00
Micha Moskovic
f179fcf99a Map <c-r> in select mode
This works exactly as in insert mode, only the " character over the next letter is not shown
2014-10-29 18:42:58 +01:00
petobens
0775156de1 Don't escape backslashes in :UltiSnipsEdit 2014-09-13 20:15:59 -03:00
Holger Rapp
c681560b42 Add 'context' value to g:UltiSnipsEditSplit. 2014-08-29 07:30:26 +02:00
David Fisher
1129ca67d2 Fix UltiSnipsEdit for g:UltiSnipsSnippetsDir paths that include spaces 2014-08-28 16:43:36 -07:00
petobens
2c3c4a7776 Add 'context' value to g:UltiSnipsEditSplit 2014-08-28 09:34:33 -03:00
Holger Rapp
04ef0f8f5c Merged unite source by Skeept. 2014-04-15 08:19:23 +02:00
Holger Rapp
c21016573b All mappings should be 'silent'. 2014-04-13 10:03:41 +02:00
Daniel Hahler
210304884a Define all/other dummy functions used in autocommands 2014-04-09 19:32:26 +02:00
Daniel Hahler
7da9dbe2af Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled 2014-04-09 19:31:00 +02:00
Daniel Hahler
3208654c4e Do not map keys if 'g:_uspy' could not be set 2014-04-09 19:30:00 +02:00
Daniel Hahler
c57c717e33 Delete autocommands when Bootstrap failed
When bootstrapping fails to setup `g:_uspy` (e.g. without Python),
the functions used in the autocommands are not being defined.

Since it makes no sense to have autocommands defined for UltiSnips in this
case, this patch deletes them (via a new augroup 'UltiSnips').
2014-04-09 19:04:30 +02:00
Daniel Hahler
2ad6ad4493 Fix E168: :finish used outside of a sourced file 2014-04-09 19:04:08 +02:00
Helder Jorge Rodrigues Inacio
cc15145429 add unite source 2014-03-31 21:44:31 -04:00
Holger Rapp
f40c3ac5e0 Made UltiSnipsEdit! more consistent with multiple filetypes. 2014-03-15 15:55:03 +01:00
Holger Rapp
5ac0436694 Retry unmapping when we switched buffers.
Fixes #229.
2014-03-14 20:35:14 +01:00
Holger Rapp
6398a598b5 Made UltiSnipsEdit more useful and consistent.
It now by default only edits private files, add a ! if you want to edit
non private files.
2014-03-06 09:10:48 +01:00
Holger Rapp
ba2f30fdf9 Adapted neosnippets source. Examples by petobens. 2014-03-06 06:47:55 +01:00
Holger Rapp
1ce706e3a9 Adapted neocomplete integration. 2014-03-05 08:55:16 +01:00
Holger Rapp
c017806b1d Added preliminary support for neocomplete.
Patch by lervag. Closes #228
2014-03-05 08:14:53 +01:00
Holger Rapp
48dcaa02bc Attempted fix at several startup problems. 2014-02-20 14:32:28 +01:00
Holger Rapp
2d18d53656 Change initialization to make session work.
Fixes #216.
2014-02-20 11:06:45 +01:00
Holger Rapp
cecc7aad88 Fixed a typo that might make problems when there is no python available. 2014-02-19 22:54:37 +01:00
Holger Rapp
c1b41d0fbf Adds 'priority' keyword and removes '!' option. 2014-02-19 21:04:52 +01:00
Holger Rapp
5d06271736 autoload/ultisnips -> autoload/UltiSnips
Fixes #214.
2014-02-17 09:20:15 +01:00
Holger Rapp
a949fc606e Remove no longer needed loading of vim script from python. 2014-02-17 08:52:10 +01:00
Holger Rapp
ba772b0d14 after script maps Keys again. Needed some refactorings. This fixes supertab integration and closes #212. 2014-02-17 08:15:04 +01:00