diff options
author | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2024-07-23 09:58:54 -0400 |
---|---|---|
committer | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2024-07-23 09:58:54 -0400 |
commit | 96f70935c3453fa39dc9b8b4446f0a467852e7e7 (patch) | |
tree | 77242825a8a253b72326468097bd8d32a4a0568a | |
parent | f5012249239eb3b578d5040d939faa6f54f083cd (diff) |
minor: revert eglot ensure for dart and c + re-adding company
-rw-r--r-- | lisp/general.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/general.el b/lisp/general.el index e80bdd7..95966e4 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -245,8 +245,7 @@ :defer t :init (add-hook 'after-init-hook 'global-company-mode) :config - (bind-key* (kbd "C-.") 'company-complete) - (setq company-idle-delay nil + (setq company-idle-delay 0.1 company-minimum-prefix-length 2 company-tooltip-limit 10 company-backends '((company-capf company-gtags company-elisp company-css company-dabbrev company-nxml)) @@ -259,6 +258,7 @@ :defer t :init (company-quickhelp-mode 1) :config + (setq company-quickhelp-delay 0.1) (setq company-quickhelp-color-background (face-attribute 'default :background)) ) @@ -270,7 +270,9 @@ :bind ("<f2>" . #'eglot-rename) :config (add-to-list 'eglot-server-programs '((c++-mode c-mode) "clangd-19")) - (add-to-list 'eglot-server-programs `((dart-mode) "/home/matthew/Programs/flutter/bin/dart" "language-server"))) + (add-to-list 'eglot-server-programs `((dart-mode) "/home/matthew/Programs/flutter/bin/dart" "language-server")) + (add-hook 'c-mode-common-hook 'eglot-ensure) + (add-hook 'dart-mode-hook 'eglot-ensure)) ;; (set-face-underline 'eglot-highlight-symbol-face t) |