summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/general.el8
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)