summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config/init-lsp.el7
-rw-r--r--early-init.el6
2 files changed, 11 insertions, 2 deletions
diff --git a/config/init-lsp.el b/config/init-lsp.el
index c92eb36..d7eda93 100644
--- a/config/init-lsp.el
+++ b/config/init-lsp.el
@@ -26,6 +26,13 @@
   ;; uses https://github.com/nix-community/nixd for the LSP server instead of rnix
   (add-to-list 'eglot-server-programs '(nix-mode . ("nixd"))))
 
+(use-package eldoc-box
+  :ensure t
+  :hook
+  (eglot-managed-mode . eldoc-box-hover-mode)
+  :custom
+  (eldoc-box-max-pixel-width 1024))
+
 (provide 'init-lsp)
 
 ;;; init-lsp.el ends here
diff --git a/early-init.el b/early-init.el
index 870eb01..4568e74 100644
--- a/early-init.el
+++ b/early-init.el
@@ -28,7 +28,9 @@
  'emacs-startup-hook
  (lambda (&rest _)
    (setq garbage-collection-messages t) ;; log when the gc kicks in
-   (setq gc-cons-threshold 16777216)    ;; 16mb
-   (setq gc-cons-percentage 0.1)))
+   ;; Make gc pauses faster by decreasing the threshold.
+   (setq gc-cons-threshold (* 2 1000 1000))
+   ;; Portion of heap used for allocation.  Defaults to 0.1.
+   (setq gc-cons-percentage 0.6)))
 
 ;;; early-init.el ends here