From a30ad7f459d43f09897ad16cc1798e308885981e Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 20 Sep 2023 14:55:12 -0700 Subject: [PATCH] Fix some eglot stuff --- init.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/init.el b/init.el index 7b8e2e6..fb143b3 100644 --- a/init.el +++ b/init.el @@ -78,6 +78,9 @@ ;; No scroll bars (scroll-bar-mode -1) + ;; Visual line mode + (global-visual-line-mode 1) + ;; Set fonts (add-to-list 'default-frame-alist '(font . "FiraCode Nerd Font Mono-12")) @@ -325,15 +328,15 @@ visual states." (use-package eglot :hook (((c-ts-mode c++-ts-mode java-ts-mode rust-ts-mode python-ts-mode) . eglot-ensure) - (eglot-managed-mode . my/-eglot-setup-eldoc)) + (eglot-managed-mode . my/-eglot-setup)) :init - (defun my/-eglot-setup-eldoc () + (defun my/-eglot-setup () "Setup eldoc variables for `eglot-managed-mode-hook'." (setq-local eldoc-echo-area-use-multiline-p - nil)) + nil) + (eglot-inlay-hints-mode -1)) (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster) - (setq eglot-autoshutdown t - eglot-ignored-server-capabilities '(:inlayHintProvider))) + (setq eglot-autoshutdown t)) ;; rust (use-package rust-mode)