Add lsp-mode, dap-mode, corfu
This commit is contained in:
parent
f3f2df78fe
commit
33ca256a85
35
init.el
35
init.el
|
@ -186,6 +186,31 @@
|
|||
:config
|
||||
(which-key-mode))
|
||||
|
||||
(use-package lsp-mode
|
||||
:hook ((c-ts-mode . lsp-deferred)
|
||||
(c++-ts-mode . lsp-deferred)
|
||||
(html-mode . lsp-deferred)
|
||||
(lsp-mode . lsp-enable-which-key-integration))
|
||||
:custom
|
||||
(read-process-output-max (* 1024 1024)) ; 1 MB
|
||||
(lsp-keymap-prefix "M-o")
|
||||
(lsp-enable-indentation nil))
|
||||
|
||||
(use-package lsp-java
|
||||
:hook (java-ts-mode . lsp-deferred))
|
||||
|
||||
(use-package lsp-ui)
|
||||
(use-package lsp-treemacs
|
||||
:hook (lsp-mode . lsp-treemacs-sync-mode))
|
||||
|
||||
(use-package dap-mode)
|
||||
|
||||
;; (use-package dap-java
|
||||
;; :ensure nil
|
||||
;; :hook (java-ts-mode . lsp-deferred)
|
||||
;; :config
|
||||
;; (require '))
|
||||
|
||||
(use-package orderless
|
||||
:demand t
|
||||
:custom
|
||||
|
@ -196,8 +221,7 @@
|
|||
(use-package marginalia
|
||||
:demand t
|
||||
:after vertico
|
||||
:bind (:map minibuffer-local-map
|
||||
("M-a" . marginalia-cycle))
|
||||
:bind (:map minibuffer-local-map ("M-a" . marginalia-cycle))
|
||||
:config
|
||||
(marginalia-mode))
|
||||
|
||||
|
@ -207,6 +231,13 @@
|
|||
(vertico-mode)
|
||||
(vertico-mouse-mode))
|
||||
|
||||
(use-package corfu
|
||||
:demand t
|
||||
:custom
|
||||
(corfu-auto t)
|
||||
:config
|
||||
(global-corfu-mode))
|
||||
|
||||
(use-package yasnippet)
|
||||
(use-package yasnippet-snippets)
|
||||
|
||||
|
|
Loading…
Reference in a new issue