Simplify lsp with eglot
This commit is contained in:
parent
a95ee1473a
commit
7fa31f7ce2
1 changed files with 1 additions and 26 deletions
|
@ -2,21 +2,13 @@
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;; LSP and autocomplete configurations
|
;;; LSP and autocomplete configurations
|
||||||
;;; Code:
|
;;; Code:
|
||||||
(use-package lsp-mode
|
(use-package eglot)
|
||||||
:init
|
|
||||||
(setq lsp-keymap-prefix "C-c 1")
|
|
||||||
:hook
|
|
||||||
(lsp-mode . lsp-enable-whick-key-integration)
|
|
||||||
:commands (lsp lsp-deferred))
|
|
||||||
|
|
||||||
(use-package yasnippet
|
(use-package yasnippet
|
||||||
:config
|
:config
|
||||||
(yas-global-mode))
|
(yas-global-mode))
|
||||||
(use-package yasnippet-snippets)
|
(use-package yasnippet-snippets)
|
||||||
|
|
||||||
(use-package lsp-ui
|
|
||||||
:commands lsp-ui-mode)
|
|
||||||
|
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
|
@ -28,21 +20,4 @@
|
||||||
|
|
||||||
(use-package helm-lsp)
|
(use-package helm-lsp)
|
||||||
|
|
||||||
;; Java
|
|
||||||
(use-package lsp-java
|
|
||||||
:config
|
|
||||||
(add-hook 'java-mode-hook 'lsp))
|
|
||||||
|
|
||||||
(use-package dap-mode
|
|
||||||
:after
|
|
||||||
lsp-mode
|
|
||||||
:config
|
|
||||||
(dap-auto-configure-mode))
|
|
||||||
(use-package dap-java
|
|
||||||
:ensure nil)
|
|
||||||
|
|
||||||
;; Auto complete
|
|
||||||
(use-package auto-complete
|
|
||||||
:init
|
|
||||||
(ac-config-default))
|
|
||||||
;;; lsp.el ends here
|
;;; lsp.el ends here
|
||||||
|
|
Loading…
Reference in a new issue