Fix some eglot stuff
This commit is contained in:
parent
667851fbea
commit
a30ad7f459
13
init.el
13
init.el
@ -78,6 +78,9 @@
|
|||||||
;; No scroll bars
|
;; No scroll bars
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
|
|
||||||
|
;; Visual line mode
|
||||||
|
(global-visual-line-mode 1)
|
||||||
|
|
||||||
;; Set fonts
|
;; Set fonts
|
||||||
(add-to-list 'default-frame-alist '(font . "FiraCode Nerd Font Mono-12"))
|
(add-to-list 'default-frame-alist '(font . "FiraCode Nerd Font Mono-12"))
|
||||||
|
|
||||||
@ -325,15 +328,15 @@ visual states."
|
|||||||
(use-package eglot
|
(use-package eglot
|
||||||
:hook (((c-ts-mode c++-ts-mode java-ts-mode rust-ts-mode
|
:hook (((c-ts-mode c++-ts-mode java-ts-mode rust-ts-mode
|
||||||
python-ts-mode) . eglot-ensure)
|
python-ts-mode) . eglot-ensure)
|
||||||
(eglot-managed-mode . my/-eglot-setup-eldoc))
|
(eglot-managed-mode . my/-eglot-setup))
|
||||||
:init
|
:init
|
||||||
(defun my/-eglot-setup-eldoc ()
|
(defun my/-eglot-setup ()
|
||||||
"Setup eldoc variables for `eglot-managed-mode-hook'."
|
"Setup eldoc variables for `eglot-managed-mode-hook'."
|
||||||
(setq-local eldoc-echo-area-use-multiline-p
|
(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)
|
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
||||||
(setq eglot-autoshutdown t
|
(setq eglot-autoshutdown t))
|
||||||
eglot-ignored-server-capabilities '(:inlayHintProvider)))
|
|
||||||
|
|
||||||
;; rust
|
;; rust
|
||||||
(use-package rust-mode)
|
(use-package rust-mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user