Commit graph

1149 commits

Author SHA1 Message Date
Itai Y. Efrat
e8dc511c74 selectrum: move consult-lsp to :tools lsp
where it belongs
2021-07-25 02:49:41 +03:00
Itai Y. Efrat
a3c978ba36 selectrum: add bibtex-actions to tools/biblio 2021-07-25 02:49:41 +03:00
Henrik Lissner
480f99c207
Merge pull request #4961 from gagbo/patch-10
Feature-gate :tools lsp company-specific hooks
2021-07-24 18:30:35 -04:00
Lordie
22e6912846
show all available lsp servers when switching (#5191)
* show all available lsp servers

show all available lsp servers instead of only high priority ones

* fixes +lsp/switch-client priority reset

now waits for lsp to initialize before restoring the default client priority
2021-07-24 18:28:07 -04:00
Henrik Lissner
b49543215b
Merge pull request #5270 from gagbo/patch-7
Add dap-cpptools to auto-requires of dap for rust
2021-07-23 16:15:54 -04:00
Henrik Lissner
2ff51f7809 Bump :tools magit
magit/forge@b4fd066 -> magit/forge@49da45a
magit/magit@9b7b25f -> magit/magit@0f4963b

Fixes magit's handling of binary file headers (magit/magit@d3a729b1)
2021-07-23 15:44:12 -04:00
Gerry Agbobada
a7c58380fa
Add dap-cpptools to auto-requires of dap for rust
dap-cpptools is, for the time being, the recommended way of setting up 
dap-mode with Rust.
2021-07-18 16:02:41 +02:00
Henrik Lissner
edc527bb26 tools/lsp: add lsp-racket to lsp-client-packages
Should be PRed upstream.
2021-07-12 20:15:29 -04:00
Henrik Lissner
d79cea2e4c Minor refactors, reformatting, & comment revision 2021-07-11 17:52:08 -04:00
Henrik Lissner
b886b9a635
Merge pull request #5251 from iyefrat/emacs27
Remove remaining `Emacs27+` checks
2021-07-10 10:29:07 -04:00
Itai Y. Efrat
34fae1c01c Remove remaining Emacs27+ checks
- Remove remaining `EMACS27+` checks, since the whole codebase is
  assumed to run at version 27 or above now
- Remove `EMACS27+` definition since it's no longer needed
2021-07-10 16:03:41 +03:00
Henrik Lissner
6997adb654 Bump :tools
Silex/docker.el@bc2dc09 -> Silex/docker.el@9bcefbe
cjohansson/emacs-ssh-deploy@fce4ea3 -> cjohansson/emacs-ssh-deploy@7c5fe8a
emacs-lsp/dap-mode@4347846 -> emacs-lsp/dap-mode@01d9297
emacs-lsp/lsp-mode@9aa22de -> emacs-lsp/lsp-mode@aec8968
emacs-lsp/lsp-ui@9953a48 -> emacs-lsp/lsp-ui@cb02972
emacs-pe/docker-tramp.el@8e2b671 -> emacs-pe/docker-tramp.el@aaee11c
emacsorphanage/terraform-mode@a9fa5bd -> emacsorphanage/terraform-mode@e560caa
jacktasia/dumb-jump@8f70acb -> jacktasia/dumb-jump@542e72d
joaotavora/eglot@a5b7b7d -> joaotavora/eglot@5cc8df6
magit/forge@551e515 -> magit/forge@b4fd066
magit/magit@b68a760 -> magit/magit@9b7b25f
tumashu/posframe@739d8fd -> tumashu/posframe@f97c4af
xuchunyang/osx-dictionary.el@4d4cc19 -> xuchunyang/osx-dictionary.el@1a4479d
zx2c4/password-store@4e73cdc -> zx2c4/password-store@3dd1469
2021-07-09 17:42:18 -04:00
Henrik Lissner
ba716d69f0 Fix #5125: mix snippets with completion candidates
So snippets aren't all the way at the bottom of the candidate list.

Closes #5220
2021-07-09 13:25:14 -04:00
Henrik Lissner
36d186d1cd Fix #4665: don't close annotation window on ESC 2021-07-08 21:42:13 -04:00
Henrik Lissner
09226f905d Fix #5155: interactive specs for tmux commands
(interactive "PD") was incorrectly used to pass two interactive
arguments to the command, but only the first argument was sent.

This corrects that, refactors +tmux/cd to be easier to understand, and
updates its docstring to reflect these changes.
2021-07-08 17:52:20 -04:00
Henrik Lissner
04eb44a610 tools/pass: remove auth-source-pass recipe
A sufficiently up-to-date version of this package is built into Emacs
27.1+. Since we dropped 26.x support in 044a1a5f2 this is no longer
needed.

Mentioned in https://discourse.doomemacs.org/t/1180
2021-07-08 00:29:32 -04:00
Cora Sutton
7925759b8e
Set the lsp-ui-sideline-actions-icon to the default
When Emacs 26.x support was in place this was originally:

```elisp
lsp-ui-sideline-actions-icon (if EMACS27+ lsp-ui-sideline-actions-icon-default)
```

But when it was removed it became:

```elisp
lsp-ui-sideline-actions-icon t
```

The docs for lsp-ui-sideline-actions-icon say:

```
Image file for actions.  It must be a png file.
```

Setting this to `t` results in a whole lot of these messages:

```
[lsp-ui-sideline]: Error with actions icon: (error Invalid image specification)
```

So the solution seems to me to be to set it to:

```elisp
lsp-ui-sideline-actions-icon lsp-ui-sideline-actions-icon-default
```

I've set it in my emacs and it seems to work.
2021-07-06 13:46:53 -05:00
Henrik Lissner
6a23c6142b tools/direnv: refactor
Our advice is no longer needed, now that envrc provides
envrc-propagate-environment. We also cache the executable path (benefits
TRAMP users, in particular).
2021-07-06 02:32:38 -04:00
Henrik Lissner
38bc1ab81a Bump :tools pdf
vedang/pdf-tools@d262cf9 -> vedang/pdf-tools@5f77dae

Fixes #4989: remove local hacks for retina support in favor of upstream
fixes.
2021-07-06 02:32:26 -04:00
Henrik Lissner
044a1a5f2b Drop Emacs 26.x support
Emacs 27.x has been the stable version of Emacs for nearly a year, and
introduces a litany of bugfixes, performance, and quality-of-life
improvements that significantly reduce Doom's maintenance burden (like
XDG support, early-init.el, image manipulation without imagemagick, a
native JSON library, harfbuzz support, pdumper, and others).

With so many big changes on Doom's horizon, I like having one less (big)
thing to worry about.

Also reverts bb677cf7a (#5232) as it is no longer needed.
2021-07-06 02:31:52 -04:00
Samuel Jackson
bb677cf7a5 Prevent extra variable from being passed in macro.
In the PDF module, there is a macro that is used to prevent the
file-too-big prompt for PDFs since they're always too big. However, this
macro has an extra variable listed that then gets passed on to the
wrapped function and causes an error if the function doesn't support the
extra variable.

This fix simply checks if the extra value is present or not and only
calls the wrapped function with it if is actually present. After all,
the variable will still be nil even if nil isn't passed.
2021-07-04 14:59:29 -07:00
Henrik Lissner
9da4ac05ad Fix #4894: +lookup/references not following references 2021-06-04 01:30:34 -04:00
Henrik Lissner
364e74a96b Bump :emacs vc :tools magit
magit/forge@37aa4e4 -> magit/forge@551e515
magit/git-modes@14adca2 -> magit/git-modes@7678ead
magit/magit@e378827 -> magit/magit@b68a760
rmuslimov/browse-at-remote@fadf99d -> rmuslimov/browse-at-remote@e02ad21

Fixes #5095: breakage due to upstream refactors
2021-05-25 13:39:26 -04:00
Henrik Lissner
f604ce6d01 Minor refactors & reformatting 2021-05-25 10:35:21 -04:00
Henrik Lissner
daa50557a4 tools/pdf: leave it to user to build epdfinfo
Trying to do this automatically is buggy to the point of insanity. It's
not reliable enough to use as a :post-build target for the pdf-tools
package.

Better to fail gracefully, let the user know what they must do, and let
them do it at their own discretion.
2021-05-25 00:11:58 -04:00
Henrik Lissner
eb9b7b0bbc tools/pdf: build epdfinfo when pdf-tools is built
This fixes a number of UX issues with pdf-tools trying to eagerly build
epdfinfo at the least appropriate times, e.g. when org-mode processes
org-pdf-tools links.

Mentioned in #5086
2021-05-24 13:34:24 -04:00
Henrik Lissner
3a0bf17f2f lsp-ui-doc-enable = nil
Disabling this by default until emacs-lsp/lsp-ui#613 is addressed.
2021-05-23 22:09:07 -04:00
Henrik Lissner
c525666688 Bump :tools
DamienCassou/auth-password-store@468bba2 -> DamienCassou/auth-password-store@fa8b964
Silex/docker.el@ed0cdf0 -> Silex/docker.el@bc2dc09
cjohansson/emacs-ssh-deploy@cc91b56 -> cjohansson/emacs-ssh-deploy@fce4ea3
editorconfig/editorconfig-emacs@9da2dab -> editorconfig/editorconfig-emacs@e10fa22
emacs-lsp/dap-mode@49af1b8 -> emacs-lsp/dap-mode@4347846
emacs-lsp/lsp-ivy@4dcb635 -> emacs-lsp/lsp-ivy@bccd860
emacs-lsp/lsp-mode@3dc87f6 -> emacs-lsp/lsp-mode@aec8968
emacs-lsp/lsp-ui@efae00e -> emacs-lsp/lsp-ui@cb02972
emacsorphanage/quickrun@57db985 -> emacsorphanage/quickrun@35e91f4
jacktasia/dumb-jump@8bc1950 -> jacktasia/dumb-jump@8f70acb
joaotavora/eglot@b06589b -> joaotavora/eglot@a5b7b7d
magit/forge@f4c95dd -> magit/forge@37aa4e4
magit/magit@577f16d -> magit/magit@e378827
millejoh/emacs-ipython-notebook@142ff50 -> millejoh/emacs-ipython-notebook@09af858
purcell/envrc@110a221 -> purcell/envrc@8a9a142
realgud/realgud@34557f8 -> realgud/realgud@7a70b27
spotify/dockerfile-mode@3b13745 -> spotify/dockerfile-mode@ad06a41
tkf/emacs-request@accd430 -> tkf/emacs-request@f3a5b43
tmalsburg/helm-bibtex@ca09076 -> tmalsburg/helm-bibtex@9f6ea92
vedang/pdf-tools@35e12b0 -> vedang/pdf-tools@d262cf9
yoshiki/yaml-mode@fc5e1c5 -> yoshiki/yaml-mode@3a57058
zx2c4/password-store@918992c -> zx2c4/password-store@4e73cdc
2021-05-22 22:43:56 -04:00
Henrik Lissner
6824b9270d tools/magit: larger fringe in magit-mode
Since Doom sets a small fringe by default, magit's fringe indicators are
obscured, so we increase it only while a magit-mode buffer is visible.
2021-05-22 22:31:39 -04:00
Henrik Lissner
d0dacce085 tools/upload: correct variable name
Fixes #5077

Co-authored-by: KARASZI István <github@spam.raszi.hu>
2021-05-21 23:13:09 -04:00
Henrik Lissner
c4a6410e27
Merge pull request #5072 from samwhitlock/me_dev
Noting the lsp-peek handlers as :async
2021-05-20 22:45:01 -04:00
Itai Y. Efrat
5ddf8b9b51 featuregate ivy dependent autoloads for irc, pass
previously these functions would get autoloaded even when another
completion framework was active
2021-05-21 00:51:11 +03:00
Itai Y. Efrat
6dc6d11b83 :tools pass fix path in autoload/pass.el header 2021-05-21 00:38:18 +03:00
Itai Y. Efrat
6e77afba11 :tools pass move autoload.el to autoload/pass.el 2021-05-21 00:37:27 +03:00
Sam Whitlock
01b3e1d8d8
Noting the lsp-peek handlers as :async
Without this, subsequent handlers registered (e.g. those from other
completion frameworks) will also pop up in addition to the peek UI.
This creates UI lock-up and is generally undesired.
2021-05-20 20:29:08 +02:00
Henrik Lissner
69bd3da195 Don't enable lsp-ui-mode in lsp--auto-configure
Using a hook instead is more sensible (users can trivially configure
it).
2021-05-18 01:06:15 -04:00
Henrik Lissner
d141f39ee7 tools/lsp: remove unneeded lsp-ui-*-enable checks 2021-05-18 00:05:15 -04:00
Henrik Lissner
1840ae8a18 Backport VC-aware bug-reference-mode from 28.x
Fixes gf (+lookup/file) on issue/PR references for Emacs 27.x users,
for example:

  #1234
  doom-emacs#1234
  hlissner/doom-emacs#1234
2021-05-16 22:50:03 -04:00
Henrik Lissner
e2077c823a tools/lsp: minor refactor
And several updates necessary for ff3c9777e.
2021-05-16 21:17:16 -04:00
Henrik Lissner
5bed0a6d16 Fix #5057: don't read editorconfig files in archives 2021-05-16 15:21:42 -04:00
Eric Dallo
c224e2e771
Move to global-mode-string 2021-05-15 18:30:59 -03:00
Henrik Lissner
755d4c7b15 Add popup rule for *envrc* error buffers 2021-05-15 14:09:08 -04:00
Henrik Lissner
ff3c9777e7 Bump :tools debugger lsp
emacs-lsp/dap-mode@ae395aa -> emacs-lsp/dap-mode@49af1b8
emacs-lsp/helm-lsp@74a02f8 -> emacs-lsp/helm-lsp@c2c6974
emacs-lsp/lsp-ivy@515e597 -> emacs-lsp/lsp-ivy@4dcb635
emacs-lsp/lsp-mode@eda51c2 -> emacs-lsp/lsp-mode@3dc87f6
emacs-lsp/lsp-ui@1dbea9f -> emacs-lsp/lsp-ui@efae00e
emacs-straight/project@388ffdf -> emacs-straight/project@ef2d487
joaotavora/eglot@f930a09 -> joaotavora/eglot@b06589b
realgud/realgud-trepan-ni@6e38cf8 -> realgud/realgud-trepan-ni@0ec088e
realgud/realgud@f73c039 -> realgud/realgud@34557f8
tumashu/posframe@fff21cc -> tumashu/posframe@739d8fd
2021-05-15 14:08:21 -04:00
Henrik Lissner
ea9753a5f2 Fix #4989: pdf scaling on retina displays 2021-05-09 20:51:15 -04:00
Henrik Lissner
195ad0fec6 Fix #5003: rethink +magit/quit
Changes +magit/quit to behave more like canonical
magit-mode-bury-buffer, but after burying/killing the last magit buffer
for the current repo, kill all the other buried ones too.

Also binds Q in magit to kill all magit buffers for the current repo.
2021-05-07 14:17:04 -04:00
Rudi Grinberg
0e9ae176be Set initial state in prodigy to normal
This allows using evil-collection's bindings for this mode.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2021-05-03 16:12:17 -07:00
Gerry Agbobada
fda382cc86
Feature-gate :tools lsp company-specific hooks
As I’m trying to use [corfu](https://github.com/minad/corfu) for a bit, I found out that this hook prevents lsp-mode from starting if company-mode isn’t used.
2021-05-01 13:03:07 +02:00
Henrik Lissner
ecdf2b0b08 Fix +lookup/file not opening URLs in browser 2021-04-30 01:07:00 -04:00
Henrik Lissner
259cf83ef1 Enhance FFAP lookup backend
gf (+lookup/file) has been changed to:

+ Use the active selection instead of the filename-at-point when
  searching for a file (as requested in #4942).
+ Pre-fill the FFAP prompt with the thing at point if no obvious
  filepath can be guessed from it (via ffap-alist).
+ Offer to search the current project for the thing-at-point (if
  counsel-file-jump is available).
+ Fall back to a standard ffap prompt if all else fails.

I've also reversed te order of file lookup backends so that our FFAP
backend is treated as a never-failing last resort (also because the
bug-reference backend is known to fail gracefully, so we can trust it to
run first).

Closes #4942
2021-04-29 17:24:40 -04:00
Henrik Lissner
9d643b14ed Revise comments 2021-04-29 13:25:48 -04:00