Commit graph

24 commits

Author SHA1 Message Date
Henrik Lissner
005831bfcc
refactor(lsp): let lsp-mode load lsp client packages
Most of these lsp packages are already in `lsp-client-packages`, which
lsp-mode will eagerly load the first time `lsp-mode` is activated, so we
don't need to do it ourselves, except in cases where the package isn't
in `lsp-client-packages` (like lsp-julia).
2024-09-09 17:24:45 -04:00
Henrik Lissner
aa54383b5d
refactor: deprecate doom-etc-dir for doom-data-dir
doom-etc-dir will be renamed to doom-data-dir, to better reflect its
purpose, and align it with XDG_DATA_HOME (where it will be moved to in
v3, where Doom will begin to obey XDG directory conventions more
closely).
2022-08-14 20:43:35 +02:00
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
Henrik Lissner
d58d084774
tweak(:lang,:tools): start eglot/lsp-mode later
To ensure lsp/eglot settings have precedence over local servers (e.g.
cider and lookup handlers).

Ref: clojure-emacs/cider#3170
2022-03-30 17:32:47 +02:00
Henrik Lissner
a776664ebc
Don't load lsp-java/dap-java if +eglot
Relevant to #3999
2020-10-14 01:40:11 -04:00
Henrik Lissner
f6f90c9791
Fix lsp packages failing to load
As of emacs-lsp/lsp-mode@b9b0f34 there is no more lsp-clients, so load
these lsp packages after lsp-mode instead.
2020-08-20 03:54:44 -04:00
Henrik Lissner
03162466c6
Fix fix for #3731
Get fixed.

See ab3376869
2020-08-11 19:22:32 -04:00
Henrik Lissner
ab3376869d
Fix #3731: fix dap-java keybinds 2020-08-11 19:19:01 -04:00
Henrik Lissner
fa0d882497
Fix #3066: void-variable lsp-java-server-install-dir 2020-05-08 14:31:33 -04:00
Henrik Lissner
d1b3021304
lang/java: refactor commands out into autoloads 2020-05-08 06:23:05 -04:00
James Ravn
79923809e8
Configure java +lsp test runner via dap-mode (#3049)
* Configure java +lsp test runner via dap-mode

This configures dap-mode appropriately so the user can run tests
directly from Doom. It adds two bindings as well which tries to mirror
other major modes:
* `SPC m t t` runs all the tests in the class at point.
* `SPC m t s` runs a single test method at point.

I also expanded the README with more details about configuring `+lsp`.

* Add +java/run-test, document +lsp/uninstall-server

* Add +java/debug-test

* Fix localleader bindings

When in `:init` they don't load in time on the initial Java buffer.
2020-05-08 05:54:54 -04:00
James Ravn
57e019e62e
Remove unnecessary dap-mode dependency
Only needed this when I was auto loading the jt lens. This should also
be conditional on the debugger module being enabled.
2020-05-06 07:52:33 +01:00
James Ravn
75305f095f
Fix lsp-jt-root in case someone wants to experiment with java-test 2020-05-06 07:47:04 +01:00
James Ravn
642efaf2b4
Move hook into use-package, remove update-lsp-server 2020-05-06 07:43:38 +01:00
James Ravn
eb738d9e3a
Remove jt stuff 2020-05-05 16:31:14 +01:00
James Ravn
72eaf530cf
Make some improvements to java +lsp
This is a first pass at making `+lsp` more functional:

* Fix lsp not starting automatically when opening java-mode buffers.
Placing it in the lsp-java hook does not work.
* Enable the code lens for test classes.
* Add a keybinding/function to easily update the eclipse LSP server.
* Add a keybinding to bring up the lsp-jt-browser (the treemacs based
browser that lists all the project tests).
* Fix root path for lsp-jt.

There are still a lot of rough edges here, and I don't think it's quite
usable yet, mostly due to issues around the java test mode (lsp-jt). The other
functionality all seems to work well though.
2020-05-05 13:23:15 +01:00
Henrik Lissner
83b6f74d11
Minor refactors & reformatting 2020-03-27 21:39:27 -04:00
Henrik Lissner
83072d5440
Load lsp-java sooner
So its server appears in M-x lsp-install-server
2020-03-06 20:38:34 -05:00
Roey Darwish Dror
1c7ba9d2cb Set the directory for the Java LSP workspace 2019-12-26 14:31:51 +02:00
Henrik Lissner
0ec0ff5ecb
Minor refactors; unbind F1 from company active map 2019-12-13 14:25:30 -05:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
7c9e9a3446
Move lsp! to local-vars hooks
- Set lsp-java-server-install-dir
- Use lsp! instead of lsp in lang/cc
2019-07-07 01:58:08 +02:00
Henrik Lissner
eb3c569e1d
Replace +lsp|init with lsp! autodef 2019-03-02 01:34:19 -05:00
Henrik Lissner
cb923eadcc
Add basic LSP support
Still needs to be documented, but includes support for the following
languages:

+ C/C++/ObjC
+ Go
+ Java
+ Javascript
+ OCaml
+ PHP
+ Python
+ Ruby
+ Scala
+ Swift
+ HTML/CSS

Relevant to #460, #716, #1186
2019-02-21 19:13:35 -05:00