Fix blueprint-ts-mode

This commit is contained in:
Alexander Rosenberg 2023-10-20 15:27:19 -07:00
parent 7638c36ec3
commit 1b359a1266
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

15
init.el
View File

@ -328,6 +328,8 @@ visual states."
(defun my/consult-setup-minibuffer-completion () (defun my/consult-setup-minibuffer-completion ()
(setq-local completion-in-region-function #'consult-completion-in-region)) (setq-local completion-in-region-function #'consult-completion-in-region))
(evil-declare-motion #'consult-line)) (evil-declare-motion #'consult-line))
(use-package consult-eglot
:commands consult-eglot-symbols)
;; integration for embark and consult ;; integration for embark and consult
(use-package embark-consult (use-package embark-consult
@ -409,6 +411,7 @@ visual states."
;; eglot ;; eglot
(use-package eglot (use-package eglot
:demand t
:hook (((c-ts-mode c++-ts-mode java-ts-mode rust-ts-mode python-ts-mode :hook (((c-ts-mode c++-ts-mode java-ts-mode rust-ts-mode python-ts-mode
latex-mode markdown-mode blueprint-ts-mode) . eglot-ensure) latex-mode markdown-mode blueprint-ts-mode) . eglot-ensure)
(eglot-managed-mode . my/-eglot-setup)) (eglot-managed-mode . my/-eglot-setup))
@ -443,7 +446,8 @@ visual states."
(evil-define-key '(normal motion) 'local (evil-define-key '(normal motion) 'local
"K" #'evil-lookup "K" #'evil-lookup
"gR" #'eglot-rename "gR" #'eglot-rename
"gA" #'eglot-code-actions) "gA" #'eglot-code-actions
"gs" #'consult-eglot-symbols)
(eglot-inlay-hints-mode -1)) (eglot-inlay-hints-mode -1))
(setq eglot-autoshutdown t) (setq eglot-autoshutdown t)
:config :config
@ -543,7 +547,14 @@ COMMAND and COMINT are like `compile'."
"Setup `nxml-mode'." "Setup `nxml-mode'."
(sgml-electric-tag-pair-mode 1) (sgml-electric-tag-pair-mode 1)
(setq-local completion-at-point-functions (setq-local completion-at-point-functions
'(rng-completion-at-point cape-file)))) '(rng-completion-at-point cape-file)))
(add-to-list 'auto-mode-alist
`(,(concat
(regexp-opt '("gschema" "gresource" "ui")) "\\'") . nxml-mode)))
;; blueprint
(use-package blueprint-ts-mode
:after eglot)
;; rust ;; rust
(use-package rust-mode) (use-package rust-mode)