aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-08-24 22:26:29 +0800
committerGuangxiong Lin <[email protected]>2021-08-24 22:26:29 +0800
commitb899cd53ce108c5c70aad31124a8fe1ee004a0ff (patch)
treeadad59f22efd80c96d2ca56797028047f5186231 /.emacs.d
parent9267d2e21da866cd8b2e12f2c977423af9a7c36a (diff)
downloaddotfiles-b899cd53ce108c5c70aad31124a8fe1ee004a0ff.tar.gz
dotfiles-b899cd53ce108c5c70aad31124a8fe1ee004a0ff.tar.bz2
dotfiles-b899cd53ce108c5c70aad31124a8fe1ee004a0ff.zip
Replace lsp-mode by eglot, alias magit
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-lang.el23
1 files changed, 3 insertions, 20 deletions
diff --git a/.emacs.d/lisp/init-lang.el b/.emacs.d/lisp/init-lang.el
index fc99967..563ebf4 100644
--- a/.emacs.d/lisp/init-lang.el
+++ b/.emacs.d/lisp/init-lang.el
@@ -20,28 +20,11 @@
:mode (("\\.go$" . go-mode))
:hook ((go-mode . (lambda () (setq tab-width 4)))))
-(use-package lsp-mode
+(use-package eglot
:ensure t
- :commands (lsp lsp-deferred)
+ :commands (eglot)
:hook
- ((go-mode . lsp-deferred)
- (lsp-mode . lsp-enable-which-key-integration))
- :config
- (evil-define-key 'normal lsp-mode-map
- (kbd "gd") 'lsp-find-definition
- (kbd "gr") 'lsp-find-references)
- (add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]\\.git\\'"))
-
-(use-package dap-mode
- :defer
- :commands (dap-mode)
- :ensure t
- :hook
- ((lsp-mode . dap-mode))
- ((go-mode . (lambda () (require 'dap-go))))
- :config
- (dap-auto-configure-mode t)
- (setq dap-auto-configure-features '(sessions locals controls tooltip)))
+ ((go-mode . eglot-ensure)))
(use-package magit
:ensure t)