Commit graph

476 commits

Author SHA1 Message Date
Daniel Nicolai
f2755533de Fix #15169, snippets not loading correctly
The auto-completion layer seems not to have been designed/configured correctly.
So that, e.g., when using the julia layer, the `auto-completion/init-yasnippet`
function is called after the `yasnippet-snippets` package has been loaded.
Despite the ``yasnippet-snippets` package containing an `eval-after-load
'yasnippet`, the form within that block is, for some reason, evaluated already
before `auto-completion/init-yasnippet` has been called.

Anyway, what currently happens is that first `(yasnippet-snippets-initialize)`
is evaluated, adding `yasnippet-snippets-dir` to the `yas-snippet-dirs` list.
Then ``auto-completion/init-yasnippet` is called which contains the line `(setq
yas-snippet-dirs nil)`, setting the list to nil again.

As there is quite some logic involved (e.g. the order of evaluation is correct
when the julia layer is not being used), this commit fixes the reported issue by
simply calling `(yasnippet-snippets-initialize)` from
`auto-completion/init-yasnippet` after the yas-snippet-dirs list has been
resetted to nil.

Any cleaner solution is welcome, but I would say this is a 'harmless' very
pragmatic quick fix/solution.
2021-11-20 20:38:36 +01:00
SpacemacsBot
f06fb38a8f [bot] "documentation_updates" Thu Nov 18 05:35:20 UTC 2021 2021-11-18 22:00:53 +01:00
tvuong
1c48cc5a5a [ivy] add mark unmark bindings 2021-11-18 06:32:15 +01:00
thanhvg
dafae5f136
[compleseus] improve (#15165)
* [compleseus] layout select current project first

* [compleseus] bind embark-export to C-c C-o

same as ivy-occur

* [compleseus] add vertico-{quick, directory}

* [compleseus] set up vertico-repeat
2021-11-18 06:30:26 +01:00
Daniel Nicolai
51611b6e30
Fix autocompletion in elisp and text mode
Currently most or all auto-completion, using completion-at-point (i.e. the TAB
key), is 'hijacked' by company-capf in emacs-lisp-mode, while in text mode there
is no auto-completion by default at all.

This commit adds auto-completion for text-mode and slightly improves the
situation for emacs-lisp mode.
2021-11-13 10:26:45 +01:00
Maxi Wolff
707124fd3a
[compleseus] Fix orderless integration 2021-11-13 09:04:54 +01:00
Thanh Vuong
76841d87fc [compleseus] tuned completion-style and added support for M-: 2021-11-12 07:47:39 +01:00
SpacemacsBot
e6bd5cc4ac [bot] "documentation_updates" Tue Nov 2 22:01:23 UTC 2021 2021-11-02 23:04:42 +01:00
Maxi Wolff
0dd38667df
[compleseus] Fetch consult-yasnippet from melpa 2021-11-02 22:57:53 +01:00
Daniel Nicolai
d5b6df3584
Add commands to compleseus layer (locate, yasnippet, search from) (#15078)
* Add commands to compleseus+fasd layer (locate,yasnippet,search-from)

* Add metadata classifier (for embark) to fasd-layer

Embark uses metadata of the target under point to determine actions. If the
target lacks a metadata classifier then the [embark
documentation](https://github.com/oantolin/embark#acting-on-targets) recommends
to [add them using the marginalia package](https://github.com/minad/marginalia#adding-custom-annotators-or-classifiers).

This PR adds the file classifier to results for fasd searches.
2021-11-02 22:50:32 +01:00
Maxi Wolff
7ac303922e
[compleseus] Fix some small typos 2021-11-02 22:40:48 +01:00
Robert O'Connor
89d3482503 Add to the docs for compleseus about selecting a completion engine 2021-11-02 22:27:17 +01:00
Maxi Wolff
b926293c33
[doc] Improve wording
following suggestions from #15119
2021-11-02 22:19:59 +01:00
Benjamin Hipple
2dc6208174 [doc] Fix spelling mistake 2021-11-02 22:17:51 +01:00
Rodrigo Virote Kassick
889f33216e helm-find-files-history requires prefix argument
Calling spacemacs/helm-find-files with prefix would cause an error
instead of popping helm-find-files-history before helm-find-files
2021-11-02 22:05:12 +01:00
Eugene Yaremenko
4f7246da07
use fetcher url for vertico-repeat package
vertico extensions aren't available yet
See https://github.com/minad/vertico/issues/83
2021-10-24 17:08:14 +03:00
Benjamin Hipple
6e512b80e1 [compleseus] Cleanup fetcher now that vertico-repeat is on elpa
elpa has the latest release tag, which includes vertico-repeat, so we can clean
this override up.
https://elpa.gnu.org/packages/vertico.html
https://github.com/minad/vertico/tree/0.14
2021-10-24 15:16:16 +03:00
SpacemacsBot
5c88c3b089
[bot] documentation_updates (#15071)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2021-10-15 02:24:54 +00:00
Eugene Yaremenko
63056ecb50
[doc] use org-mode example block for example 2021-09-29 23:43:14 +03:00
Maxi Wolff
44078aaebc
[ivy] Fix new src block in docs 2021-09-29 22:26:12 +02:00
Thanh Vuong
03ab15ed36
[ivy] counsel search commands use spacemacs--ivy-file-actions
spacemacs/counsel-search counsel-rg counsel-ag and counsel-find-file now share a
comon set of actions defined in `spacemacs--ivy-file-actions`
2021-09-29 22:20:34 +02:00
Rainer Gemulla
b1d287081f Fix typo that prevents ivy-rich from being enabled 2021-08-25 22:48:05 +02:00
Maxi Wolff
f78c9bed18
[docs] Fix broken link in ivy README 2021-08-25 22:34:54 +02:00
Daniel Nicolai
f92af9989a Add option to enable all-the-icons-ivy-rich to ivy layer 2021-08-22 22:31:05 +02:00
duianto
6205d29e11
[compleseus] Fix keys (#14968) 2021-08-20 04:50:45 +00:00
duianto
7b5b69fda5 [compleseus] Fix indentation 2021-08-02 13:24:37 +02:00
Thanh Vuong
50f4fe183f [compleseus] add consult-line-multi 2021-08-02 13:20:42 +02:00
Thanh Vuong
dce3f1d722 [ivy] add open in other window for ivy-xref 2021-07-28 19:38:30 +02:00
Andreas Sahlbach
579edd5deb fixed a small typo in the ivy docu
regarding the modifier for transient mode
2021-07-28 18:32:54 +02:00
SpacemacsBot
81eb82603c [bot] "documentation_updates" Wed Jul 28 13:13:07 UTC 2021 2021-07-28 15:35:39 +02:00
duianto
431dfd5ad9 [docs] Update completion layer install notes
The other completion layers, need to be:
- removed
- commented out
- or listed before the active completion layer
2021-07-26 15:49:42 +02:00
Thanh Vuong
6121a5807b [compleseus] new completion layer consult embark orderless selectrum/vertico
Built on consult embark orderless selectrum/vertico.

It's been working ok. Basic features are in, let's merge it and let our community
improve it togegher :)
2021-07-26 10:48:20 +02:00
Dominik Schrempf
54cb40b9ca [helm] Add S-RET keybinding for helm modes to open in other window
Remove `C-o` keybinding from helm-bookmarks.

Add `S-RET` keybinding to open file/buffer/bookmark in other window for
helm-files helm-buffers and helm-bookmarks.

Advantage: Consistent behavior. It is pretty cumbersome to use the persistent
action provided by helm to open files/buffers/bookmarks in the other window.
2021-05-17 22:07:28 +02:00
Dan Kessler
2c661ab49d
Ensure hjkl bindings are respected during company search/filter (#14768) 2021-05-13 19:01:48 -04:00
Maximilian Wolff
e9b4131d18 [auto-complete] Removed the last traces of transformer integration
They are mostly obsolete now and harmful for performance.
See #14547 for details.
2021-05-09 20:56:54 +00:00
Daniel Nicolai
b3c78297fb Add describe evil ex-command functionality
For introspection purposes it can be nice to have this functionality. Also this
function can be used to discover which ex-commands are available.
2021-04-15 22:03:59 +02:00
syl20bnr
97cd83e169 Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
syl20bnr
d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
duianto
3fe675d588 [auto-completion] Fix obsolete: helm-c-yas-space-match-any-greedy
Fixes:
Got a warning when trying to insert YASnippet. #12648
https://github.com/syl20bnr/spacemacs/issues/12648
2021-03-22 11:15:45 +01:00
Maximilian Wolff
d16a8c3a7c
[auto-completion] Remove standard transformers
These try to modify the completions on a global basis.
This is causing a lot of issues with more intelligent
backends, which tend to do this in a more efficient
way already.

I have removed the global bindings for these now.
Layers should make `company-transformers` buffer local
and add specific versions of these when required.
2021-03-21 22:20:55 +01:00
Maximilian Wolff
8f854da649
Make auto-completion activate/deactivate smartparens properly
auto-completion did not respect the smartparens-mode
defined in the dotfile when disabling/restoring it.

In addition when starting a yasnippet expansion
smartparens-mode was not properly restored resulting
in having smartparens always disabled.

This PR tries to fix both issues. Though judging from
the comments this could kill `hippie-expand` expansion.
However as yasnippet is more common I think this is
to be preferred.
2021-03-16 22:21:40 +01:00
Thanh Vuong
54e3cc572f [ivy] extend highlight for selection in emacs 27 2021-02-25 14:56:34 +01:00
Ivan Yonchovski
599a9bb278 [helm] avoid duplicates in `helm-M-x' history 2021-02-20 22:00:26 +01:00
Ivan Yonchovski
1d0cd56c17 Revert to default value of helm-swoop-speed-or-color
- having font-lock enabled for swoop buffers is really slow
2021-02-20 21:59:35 +01:00
Thanh Vuong
c11e8baa9d [ivy-rich] enable ivy-rich-project-root-cache-mode
which improves performance when many buffers opened.

Ref:
https://github.com/Yevgnen/ivy-rich#project-performance
ref https://github.com/syl20bnr/spacemacs/issues/10101
2021-02-09 15:04:23 +01:00
Thanh Vuong
ae65f3cedd
Fix #14213 remove dash and ht from core libs
- delete dash and ht in core
- reimplemented all ht functions we need in `spacemacs-ht.el` and use them
- add dash to spacemacs-bootstrap
2021-02-07 22:22:39 +01:00
Daniel Nicolai
7276970c91
Implement C-(S)-tab buffer switch in Ivy layer 2021-02-04 23:33:39 +01:00
Daniel Nicolai
dc7b04dc66 Implement C(-S)-tab buffer switch in Helm layer
Equivalent to PR #14287 for ivy-layer
2021-02-03 22:36:50 +01:00
duianto
a82d2292b6 [base] Fix void helm-use-fuzzy
problem:
The spacemacs-completion layer defines the variable:
helm-use-fuzzy

But the spacemacs-base distribution doesn't use the
spacemacs-completion layer by default.

helm-use-fuzzy is used in the helm layer.

When a helm buffer is opened, for example: `SPC SPC`
Then a warnings buffer opens:
>Error (use-package): helm/:config: Symbol’s value as variable is void: helm-use-fuzzy

solution:
Make sure that helm-use-fuzzy is bound and true.
2020-12-30 20:54:00 +01:00
Maximilian Wolff
1be72042e1 [ivy] Add doc for new C-SPC binding 2020-12-13 09:52:43 +00:00