Skip to content

Commit

Permalink
refactor(lsp): switch to flycheck-eglot package
Browse files Browse the repository at this point in the history
We no longer need to maintain our own juryrigged version of this
functionality.
  • Loading branch information
hlissner committed Feb 21, 2023
1 parent 83a5325 commit 2561170
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 81 deletions.
9 changes: 5 additions & 4 deletions modules/tools/lsp/+eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@

(add-to-list 'doom-debug-variables '(eglot-events-buffer-size . 0))

(when (modulep! :checkers syntax)
(after! flycheck
(load! "autoload/flycheck-eglot")))

(defadvice! +lsp--defer-server-shutdown-a (fn &optional server)
"Defer server shutdown for a few seconds.
This gives the user a chance to open other project files before the server is
Expand All @@ -55,3 +51,8 @@ server getting expensively restarted when reverting buffers."
:when (modulep! :completion vertico)
:init
(map! :map eglot-mode-map [remap xref-find-apropos] #'consult-eglot-symbols))


(use-package! flycheck-eglot
:when (modulep! :checkers syntax)
:hook (eglot-managed-mode . flycheck-eglot-mode))
76 changes: 0 additions & 76 deletions modules/tools/lsp/autoload/flycheck-eglot.el

This file was deleted.

4 changes: 3 additions & 1 deletion modules/tools/lsp/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
(progn
(package! eglot :pin "e501275e06952889056268dabe08ccd0dbaf23e5")
(when (modulep! :completion vertico)
(package! consult-eglot :pin "6504ccd2b7555452c61cc24a45965f7e2a37c44d")))
(package! consult-eglot :pin "6504ccd2b7555452c61cc24a45965f7e2a37c44d"))
(when (modulep! :checkers syntax)
(package! flycheck-eglot :pin "9abab011071c93250a894cf2bfeaf30c8e3367a7")))
(package! lsp-mode :pin "a655f3600e040f872408da0e9c1b9fe65ca0aad9")
(package! lsp-ui :pin "295d8984da06a745b0a36c56e28ce915bc389adb")
(when (modulep! :completion ivy)
Expand Down

0 comments on commit 2561170

Please sign in to comment.