diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-29 18:06:29 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-29 18:28:32 +0100 |
commit | e402b7bf5970665eac4af855b81702b589a1aa8c (patch) | |
tree | 0ad3585434fa2971293eaec36a1460c9c86d224f /dotfiles/.emacs | |
parent | Dotfiles: Emacs: Only set font if exists (diff) | |
download | nixos-config-e402b7bf5970665eac4af855b81702b589a1aa8c.tar.gz nixos-config-e402b7bf5970665eac4af855b81702b589a1aa8c.tar.bz2 nixos-config-e402b7bf5970665eac4af855b81702b589a1aa8c.zip |
Dotfiles: Emacs: Switch to eglot + corfu
Diffstat (limited to 'dotfiles/.emacs')
-rw-r--r-- | dotfiles/.emacs | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/dotfiles/.emacs b/dotfiles/.emacs index 11a39e4..167b02f 100644 --- a/dotfiles/.emacs +++ b/dotfiles/.emacs @@ -134,20 +134,28 @@ :config (projectile-mode +1)) -(use-package company +(use-package orderless + :ensure t + :custom + (completion-styles '(basic partial-completion orderless))) + +(use-package corfu :ensure t :config - (setq company-minimum-prefix-length 1) - (setq company-idle-delay 0.0)) + (setq corfu-auto t) + :init + (global-corfu-mode)) -(use-package company-box +(use-package eglot :ensure t - :hook (company-mode . company-box-mode)) + :config + (setq read-process-output-max (* 1024 1024)) + (setq gc-cons-threshold 100000000)) -(use-package orderless +(use-package eldoc-box :ensure t - :custom - (completion-styles '(basic partial-completion orderless))) + :init + (add-hook 'eldoc-mode-hook 'eldoc-box-hover-at-point-mode)) (use-package copilot :straight (:host github :repo "copilot-emacs/copilot.el" :files ("dist" "*.el")) @@ -157,29 +165,16 @@ (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 - :config - (setq lsp-semantic-tokens-enable t) - (setq lsp-headerline-breadcrumb-enable nil) - (setq lsp-file-watch-threshold 4000) - (setq gc-cons-threshold 100000000) - (setq read-process-output-max (* 1024 1024))) - -(use-package lsp-ui - :ensure t - :config - (setq lsp-ui-doc-show-with-cursor nil)) - (use-package rustic :ensure t :config - (setq rustic-format-on-save t)) + (setq rustic-format-on-save t) + (setq rustic-lsp-client 'eglot)) (use-package go-mode :ensure t :init - (add-hook 'go-mode-hook 'lsp-deferred)) + (add-hook 'go-mode-hook 'eglot-ensure)) (use-package dired-sidebar :ensure t |