Commit Graph

513 Commits

Author SHA1 Message Date
Lin Sun 7ec7d843e0 layers/*: remove quote inside the cl-case clauses 2022-10-19 22:19:25 +02:00
Steven Lin b8882d0741 Fix problem with smartparens when expanding nested snippets 2022-10-19 22:13:26 +02:00
Lin Sun 95c66b9010 layers/+completion/helm: use default helm fuzzy function, not depend on the helm-flx 2022-10-19 20:16:17 +02:00
Irsyad Asyhari Lubis fe01603df9
feat: add consult-imenu for Java LSP (#15758) 2022-10-05 18:21:01 +00:00
Atemu 201d22bcc9 compleseus: use the correct predicate for minibuffer hjkl bindings
https://github.com/syl20bnr/spacemacs/pull/15710 confused
hybrid-style-enable-evilified-state and hybrid-style-enable-hjkl-bindings
2022-08-29 14:18:29 +02:00
Atemu d6c3482663
compleseus: disable ido and respect minibuffer binds evilification setting (#15710)
* compleseus: disable ido-mode when vertico and selectrum are used

ido would inject inself instead of the regular `find-file' but if these are
activated, we actually want the regular `find-file'.

* core: provide minibuffer evilification predicate

Many different layers need to decide whether to evilify their minibuffer maps.
Provide a single function that puts the logic in one place.

* compleseus: only evilify minibuffer binds when desired
2022-08-27 10:46:04 +02:00
Lucius Hu 7706f0ffd2
helm: remove unnecessary setting on xref-show-xrefs-function
For `helm` users, we set `xref-show-xrefs-function` according to Emacs version.
This is a two-fold unnecessity:
- We now only support Emacs version > 27, so `hellm-xref-show-xrefs` should not
be used anyway.
- `hem-xref` already set this variable according to Emacs version. See
[here][ref].

This commit removes this.

ref: ea0e4ed8a9/helm-xref.el (L192-L197)
2022-08-04 18:50:26 -04:00
thanhvg 5dc773e90f
[compleseus] fix hack for company-capf (#15652) 2022-07-20 23:58:12 -04:00
Thanh 4357030100 [compleseus] improve M-n 2022-07-15 22:41:05 +02:00
thanhvg 58f021b3f3
[compleseus] work with tramp (#15639)
make tramp completion work and layout recognize remote project.
2022-07-15 20:26:09 +00:00
Maxi Wolff ee95121e6b
[helm] Fix dangerous implementation for helm-use-fuzzy
This variable caused Spacemacs to set all helm sources
to use fuzzy matching independently of whether this
was supported by the source.

This handling was very dangerous as using fuzzy for an
incompatible source can have all kind of side effects
causing unique bugs which will never be fixed by the
source package authors.

Therefore I have changed the implementation to
activate fuzzy matching via helm variables instead,
which should make sure we only activate this for
compatible sources.

If sources are found which do not longer do
fuzzy matching, the individual source should be
improved to support this feature and declare it's
compatibility towards helm.

We cannot fix helm in Spacemacs, instead the respective
package must be patched. Everything else is a maintenance
nightmare!

Fixes #15124
2022-06-19 19:43:04 +02:00
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
Sebastian Hahn 1228c57444 removing consult-completing-read-multiple in compleseus 2022-06-01 11:14:47 +02:00
Thanh Vuong b8f471dc1c
[core] new recipe :fetcher local
with this curent (package :location local) can be replaced with (package
:location (recipe :fetcher local)) then quelpa will install local pacakge. We
have the benefit of bytecompile and autoload

[packages] use new fetcher for local
2022-05-29 15:58:19 +02:00
Maxi Wolff 39b9def6d5
Fix variable is void warnings at startup
which were caused by invocing
evilified-state-evilify-map in the init section.
2022-05-29 15:04:18 +02:00
Daniel Nicolai f4b04bcf22 Add obsoletion notification evilified-state-evilify 2022-05-29 14:05:07 +02:00
Thanh 85e14e5519 [compleseus] update
- update vertico-repeat

- annotation for projectile

- tweak xref

- new buffer source of modified ones

- vertico settings

- use consult-org-heading

- tweak orderless

- tweak consult-line to start from top to bottom

- tweak marginalia

- tweak orderless for company and lsp

- fix persp mixing up buffer-list order
2022-05-21 11:13:08 +02:00
Bryce a69aba732a
Fix function quote warning (#15446)
* Fix function quote warning

Change `'` to `#'`, resolves #15443.

* Fix quoting in `helm-spacemacs-help.el`, add docstrings, fix action

These changes hopefully fix #15443

- Add docstrings to the lambdas
- Change selected action for `<S-return>` to the sixth action, to install the
  layer. This change makes the action conform to the removed comment.

  > `;; Add layer`

* squash! Fix function quote warning, fix helm action

- Resolve #15443
- Add docstrings to lambdas
- Fix index of helm action for layer install (the actions are zero-indexed)
2022-05-11 19:40:19 +02:00
Dan Kessler d79b12e7b4
Replace alist helm sources with proper helm sources (#15364) 2022-04-04 14:51:01 -04:00
Dan Kessler 75c30eed0d
[helm] fix typo in helm-ls-git (#15411) 2022-03-16 15:59:54 -04:00
Alfonso Montero d66548fd04
[completion] Fix readme markup. (#15410) 2022-03-16 15:10:42 -04:00
Andreas Sahlbach 3deed8f060
compleseus: corrects name of some renamed consul commands (#15352) 2022-02-16 18:45:42 +00:00
Lucius Hu b7e1dee13f
spacemacs-buffer: Added optional feature to show file icons (#15332)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-02-15 06:52:00 +00:00
Lucius Hu 3429bcf056
fixed typos postframe to posframe 2022-02-14 11:05:18 -05:00
Lucius Hu 30e32ea41f
fixup! [auto-completion] add company-posframe 2022-02-14 02:36:17 -05:00
thanhvg adf9da378b
[auto-completion] add company-posframe (#15320)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-02-12 06:01:59 +00:00
ismama 031f7e1666
Fix the use of consult--source-project-file (#15328) 2022-02-08 11:07:25 -05:00
ismama 22d168a054
Fix consult-buffer error (#15327) 2022-02-08 09:13:06 -05:00
thanhvg 4a305a44af
[compleseus] clean up (#15314) 2022-02-05 13:31:20 -05:00
thanhvg fee90f8dd0
[compleseus][ivy] quote regex when search for region or symbol at point (#15313) 2022-02-05 13:30:30 -05:00
Lucius Hu fd652fae0c
update spacemacs/declare-prefix usages (#15278)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-02-04 05:36:11 +00:00
Lucius Hu 1541eed6bd fix messed up keybindings in helm-ag-map 2022-01-12 13:14:44 +01:00
Daniel Nicolai 2f061d26ae
Fix keybindings in ivy-occur-grep-mode
Closes #15219
2022-01-08 03:56:30 +00:00
Thanh Vuong 1d45278a71 [lsp] add consult-lsp and set lsp-use-upstream-bindings to t
lsp-use-upstream-bindings is t so by default spacemacs will use lsp-mode binding
scheme. We should consider to phase our the current manual binding scheme for
lsp-mode in future
2022-01-01 15:57:32 +01:00
Lucius Hu d7f9eb6342 Update minimum supported emacs version to 27.1 2022-01-01 14:32:46 +01:00
Thanh Vuong eb3ebe2c6e [compleseus] integration with which-key
https://github.com/oantolin/embark/wiki/Additional-Configuration#use-which-key-like-a-key-menu-prompt

embark-act `M-o` menu will be handled by which-key
2022-01-01 14:28:52 +01:00
Thanh Vuong 902d210361 [auto-completion][julia] Revert #15171, Proper fix for #15169
This reverts commit f2755533de.

This adds fix for julia layer breaking yasnippet setup.

Commit f2755533de fixed a specific bug in julia
layer but it loads yasnippet and friends on start up which adds 1 sec to my
startup time even though I don't use julia.

Julia layer loads lsp-julia early on startup, which loads lsp who then loads
yasnippet behind the scene unknown to spacemacs and use-package. That's why our
nice and ordered setup for yasnippet and yasnippet-snippets failed as discussed
in https://github.com/syl20bnr/spacemacs/pull/15171. We now tell use-package to
defer its load.
2021-12-30 18:35:37 +01:00
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