Commit graph

24 commits

Author SHA1 Message Date
syl20bnr
d149c5beae auto-completion layer: rename auto-completion-sort-by-usage
to auto-completion-enable-sort-by-usage
When it is possible we try to use the verb `enable`.
2015-05-06 22:22:01 -04:00
person808
866f59e41f Add support for company-statistics. 2015-05-06 22:18:48 -04:00
syl20bnr
640d8fc19c auto-completion layer: improve implementation of key sequence to complete
default value `auto-completion-complete-with-key-sequence` is now nil
resolves conflict with evil-escape
fixes #1491
2015-05-05 22:32:28 -04:00
syl20bnr
c634baceec auto-completion layer: rename auto-completion-enable-company-help-tooltip
to auto-completion-enable-help-tooltip
2015-05-04 00:15:58 -04:00
syl20bnr
441fa05f12 auto-completion layer: new UX variables 2015-05-04 00:14:25 -04:00
syl20bnr
8a6bcacb09 Correctly complete the selection when pressing jk 2015-04-30 00:35:13 -04:00
syl20bnr
e9f09d03e6 [WIP] Implement new auto-completion UX using company and yasnippet
- RET is not used anymore
- TAB complete the common prefix and cycle between candidates
- To complete the selection use C-l or `jk` pressed quickly
- Yasnippet expand uses hippie-expand and M-/ or C-p
2015-04-29 23:49:59 -04:00
syl20bnr
914ee405b8 company: add terminal support for S-TAB 2015-04-27 05:56:59 -04:00
syl20bnr
d9bc198d1f company: tab now complete common prefix and cycle, RET is back 2015-04-26 23:14:34 -04:00
syl20bnr
d8cc7c9a31 company: remove ESC binding to abort company
resolve #1372
2015-04-26 22:54:21 -04:00
syl20bnr
f96b23646f company: unbind RET to auto-complete 2015-04-26 22:53:26 -04:00
syl20bnr
3ddd2f4e64 company: use tab to auto-complete and complete common prefix
Now we need to find a way to cycle between the candidates when
the common prefix is completed.
2015-04-26 22:47:08 -04:00
syl20bnr
845126dac0 Move yasnippet and hippie-exp to auto-completion layer 2015-04-22 22:03:04 -04:00
syl20bnr
fdd4e944ef Reload dotfile and layer anywhere with SPC f e R
Replace `SPC m c c` and `C-c C-c` in the dotfile

Resolve #1210
2015-04-18 23:40:24 -04:00
syl20bnr
cdd1eddd3d Abort company when pressing escape 2015-04-18 00:48:11 -04:00
syl20bnr
e674c10a0a Disable globally enabled company 2015-04-09 08:09:00 -04:00
syl20bnr
cef3ca6653 auto-completion layer: defer 1 instead of 2 for company 2015-04-09 01:54:40 -04:00
syl20bnr
965dc56817 Re-enable company globally with :defer 2 2015-04-09 01:17:49 -04:00
syl20bnr
0c6682cbd1 Refactor one more time the auto-completin macros
It is important to define the buffer local backend variables
in a config.el otherwise it is not available in the layer
configuration if the auto-completion layer is removed.
There were also some issues by hiding the explicit
configuration of company inside a macro, for instance
helm-spacemacs is unable to display the company package
configured in a given layer if the auto-completion layer
is removed.
2015-04-09 00:03:51 -04:00
Tristan Hume
3ab9cb0af3 Global company temporary stopgap 2015-04-07 12:15:31 -04:00
syl20bnr
5caa5750e0 Rework the toggles of the mode-line
Now the symbol corresponds to the key binding.
The global version of the toggle when available is performed
with `control` modifier.
2015-04-06 16:02:14 -04:00
syl20bnr
57fcb93799 Rename *-declarep functions to *-usedp functions
Makes more sense from a user view point.
2015-04-03 19:13:52 -04:00
syl20bnr
9f3f2b9741 Fix automatic global toggle of auto-complete when loaded 2015-04-03 13:30:26 -04:00
syl20bnr
769d54da02 New layer auto-completion
Move company and auto-complete to a common layer.
They are not enabled globally anymore, each mode using them
must explicitly declare a hook.
Only one frontend is supported for a given mode, we have to
choose the best between the two.
Only one key binding to toggle auto-completion on `SPC t a` no
matter if it is company or auto-complete. The lighter in the
mode-line is Ⓐ for both frontends.
2015-04-03 00:28:13 -04:00