Fix keybinding conflict and remove dead Corfu code

- Change C-c r to C-c R for crux-rename-buffer-and-file to avoid
  conflict with consult-ripgrep-project-root
- Remove unused corfu and cape from package list, add company instead
- Remove dead Corfu/Cape integration code from init-eglot.el
- Include related indentation and formatting settings cleanup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jens Luedicke
2025-12-12 10:25:51 +01:00
parent 3a22e1e294
commit ba8b24b1d9
3 changed files with 83 additions and 21 deletions

View File

@@ -61,10 +61,10 @@
(add-to-list 'eglot-server-programs
'(qml-mode . ("qmlls"))))
;; Format on save
(defun eglot-format-buffer-on-save ()
"Format buffer with eglot before saving."
(add-hook 'before-save-hook #'eglot-format-buffer -10 t))
;; Format on save - DISABLED to prevent reindenting
;; (defun eglot-format-buffer-on-save ()
;; "Format buffer with eglot before saving."
;; (add-hook 'before-save-hook #'eglot-format-buffer -10 t))
;; Keybindings
(define-key eglot-mode-map (kbd "C-c l r") 'eglot-rename)
@@ -102,15 +102,8 @@
tsx-ts-mode-hook))
(add-hook mode #'eglot-ensure))
;; Integration with Corfu for completion
(with-eval-after-load 'corfu
(setq completion-category-overrides '((eglot (styles orderless))))
(add-hook 'eglot-managed-mode-hook
(lambda ()
(setq-local completion-at-point-functions
(list (cape-super-capf
#'eglot-completion-at-point
#'cape-file))))))
;; Integration with Company for completion (Company configured in init-completion.el)
;; Eglot automatically uses completion-at-point-functions which Company respects
;; Eldoc configuration for better documentation display
(with-eval-after-load 'eldoc