diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-23 00:36:21 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-23 00:36:21 +0100 |
commit | 25e40debbdd4471dd1f4f42bd45f73b4f1143f74 (patch) | |
tree | 6c9f26a07fdfc736f945fbb341a0b7ded5aa6a9d /dotfiles | |
parent | Dotfiles: Emacs: Corfu instead of company (diff) | |
download | nixos-config-25e40debbdd4471dd1f4f42bd45f73b4f1143f74.tar.gz nixos-config-25e40debbdd4471dd1f4f42bd45f73b4f1143f74.tar.bz2 nixos-config-25e40debbdd4471dd1f4f42bd45f73b4f1143f74.zip |
Dotfiles: Emacs: Lsp-mode instead of eglot
Diffstat (limited to 'dotfiles')
-rw-r--r-- | dotfiles/.emacs.new | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/dotfiles/.emacs.new b/dotfiles/.emacs.new index 992318f..2089dd9 100644 --- a/dotfiles/.emacs.new +++ b/dotfiles/.emacs.new @@ -97,12 +97,13 @@ :config (direnv-mode)) -(use-package corfu +(use-package company :ensure t - :init - (global-corfu-mode) - :config - (setq corfu-auto t)) +) + +(use-package company-box + :ensure t + :hook (company-mode . company-box-mode)) (use-package copilot :straight (:host github :repo "copilot-emacs/copilot.el" :files ("dist" "*.el")) @@ -112,13 +113,18 @@ (define-key copilot-completion-map (kbd "<tab>") 'copilot-accept-completion) (define-key copilot-completion-map (kbd "TAB") 'copilot-accept-completion)) +(use-package lsp-mode + :ensure t) + +(use-package lsp-ui + :ensure t) + (use-package rustic :ensure t :config - (setq rustic-format-on-save t) - (setq rustic-lsp-client 'eglot)) + (setq rustic-format-on-save t)) (use-package go-mode :ensure t :init - (add-hook 'go-mode-hook 'eglot-ensure)) \ No newline at end of file + (add-hook 'go-mode-hook 'lsp-deferred)) \ No newline at end of file |