Commit Graph

75 Commits

Author SHA1 Message Date
James Ravn
573d14c264 Include snippets in lsp completion
This gives completion of snippets along with normal LSP completion,
similar to how the old company-lsp backend worked.
2021-01-07 11:19:03 +00:00
Henrik Lissner
70e71f3f6d lsp-headerline-breadcrumb-enable = nil 2021-01-07 01:41:58 -05:00
Henrik Lissner
2849efdf2e lang/lua: update README & refactor
Mentioned in #4462
2021-01-03 17:07:42 -05:00
Henrik Lissner
b857566239 Minor refactors 2020-10-20 16:52:39 -04:00
Henrik Lissner
88b42caab0 Fix user-defined flycheck-checker in lsp-mode 2020-10-20 16:51:39 -04:00
Henrik Lissner
8297af01a8 tools/lsp: tweak lsp-ui-doc defaults 2020-10-14 18:38:09 -04:00
Henrik Lissner
2491c8ed2c tools/lsp: add j/k/C-j/C-k keys for lsp-ui-peek 2020-10-14 18:38:05 -04:00
Henrik Lissner
c80d546e55 Don't prompt to kill lsp server on cleanup 2020-10-12 17:36:02 -04:00
Henrik Lissner
ebc1e7092d tools/lsp: restore flycheck-checker fix #3989
Removed in 22b6eaed0.
2020-10-11 20:31:33 -04:00
Henrik Lissner
22b6eaed03 Rethink lsp defaults
+ Allow LSP to prompt to install servers. All this machinary just adds
more confusion for beginners, and at least LSP asks for your permission
before it does it.
+ Reverts lsp-enable-file-watchers and lsp-enable-indentation to their
default (enabled), hopefully to help lsp-java, lsp-dart, and lsp-clojure
users, for whom file-watchers seems to be necessary.
+ Apply GC/IPC optimizations globally, to ensure their reach. By only
setting them buffer-locally we don't have a guarantee that subprocesses
will be affected when the lsp buffer isn't focused.

Closes #3989

Co-authored-by: Eric Dallo <ercdll1337@gmail.com>
2020-10-11 18:32:42 -04:00
Henrik Lissner
841eacc77d tools/lsp: lazy load <leader> c l keybind
Fixes a issue where folks would try to rebind <leader> c, only to get a
non-prefix key error about <leader> c l.
2020-08-27 17:44:58 -04:00
Henrik Lissner
018cedf05f tools/lsp: fix void-function apply-orig-fn
When +lsp-auto-install-servers is non-nil.
2020-08-26 13:22:05 -04:00
Henrik Lissner
4e82ee4397 Refactor doom-debug-mode
+ Add explain-pause-mode
+ Now reloads itself if doom-debug-variables is changed or when one of
  its variables becomes available.
+ doom-debug-variables now supports a cons cell entry where its CAR is
  the name of the variable and CDR is the value it should be set to when
  doom-debug-mode is active.
2020-08-21 01:26:24 -04:00
Henrik Lissner
6cf5d72ff6 Generalize LSP optimizations to include eglot 2020-08-12 00:34:09 -04:00
Henrik Lissner
50f1391e86 Fix #3274: don't chain checkers to LSP
Reverts 8ecec82
2020-08-12 00:34:01 -04:00
Henrik Lissner
358ca9864b tools/lsp: remove redundant config
lsp-enable-links was re-enabled in edf5249d1, since #2911 is no longer
an issue.
2020-08-09 01:50:41 -04:00
Henrik Lissner
69259093e2 tools/lsp: fix lsp-mode init
3f5cc4c63 introduced some big changes to how Doom starts lsp-mode. I've
deferred much more of the work to upstream, but it:

1. lsp's errors no longer made sense (complaining about servers having
   no automated install routine, despite having one).
2. Broke lsp support in indirect buffers (like org src/capture buffers).

So I half-reverted 3f5cc4c63 and added a +lsp-auto-install-servers
variable to make it optional (albeit opt-in).
2020-08-06 20:45:16 -04:00
Henrik Lissner
3f5cc4c630 Bump :tools lsp debugger
emacs-lsp/dap-mode@8c59b0a -> emacs-lsp/dap-mode@85a6163
emacs-lsp/lsp-mode@0131f1f -> emacs-lsp/lsp-mode@edb8119
realgud/realgud@de31e77 -> realgud/realgud@5b0ed08
tumashu/posframe@b3028b0 -> tumashu/posframe@6d604a7

Also refactors the :tools lsp module. Recent changes upstream have made
a few of our hacks unnecessary (or easier to pull off without advice).

Upstream has also introduced optimizations!
2020-08-06 19:36:22 -04:00
Henrik Lissner
7784c0b6e9 No-op (lsp) if already enabled #3390
`lsp-deferred` calls `lsp` and `lsp` seems to do something expensive
whether or not lsp-mode is already active. Over TRAMP, this is much too
expensive, so we no-op lsp-deferred if lsp-mode is already active.
2020-08-02 16:27:09 -04:00
Henrik Lissner
e852ac0469 Re-introduce +lsp-company-backends
Not a perfect solution, but it'll do while I figure out a better
solution for set-company-backends!'s inflexibility.
2020-08-01 15:18:02 -04:00
Henrik Lissner
661477f5da Remove lsp-flycheck-live-reporting setting
This variable was removed upstream.
2020-06-24 19:04:47 -04:00
Henrik Lissner
8bf902d5f4 General refactors & reformatting across the board 2020-06-04 20:13:28 -04:00
Henrik Lissner
db25224e18 Fix #3286: prevent nil flycheck checker 2020-06-04 19:43:20 -04:00
Seong Yong-ju
8ecec82eef tools/lsp: Make lsp checker chained to other checkers 2020-05-30 23:05:08 +09:00
Gerry Agbobada
6a163fd5c1 [review] create +lsp.el and +eglot.el files
This means we can remove a lot of `:unless (featurep! +eglot)`
2020-05-28 11:17:55 +02:00