Fix lsp-mode not cooperating well with cape

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-03-30 14:53:34 +01:00
parent 6f18aa5f55
commit 7e75c66250
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -82,8 +82,8 @@ Hook ~cape~ onto both ~text-mode~ and ~prog-mode~.
(defun cape-setup-capf ()
"Setup cape completions"
(add-hook 'completion-at-point-functions #'cape-file)
(add-hook 'completion-at-point-functions #'cape-tex))
(add-hook 'completion-at-point-functions #'cape-file -100 'local)
(add-hook 'completion-at-point-functions #'cape-tex -100 'local))
:hook
((prog-mode . cape-setup-capf-prog)
(text-mode . cape-setup-capf-text))
@ -96,5 +96,5 @@ Hook ~cape~ onto both ~text-mode~ and ~prog-mode~.
:no-require t
:after (cape lsp-mode)
:hook
((lsp-mode . #'cape-setup-capf)))
((lsp-mode . cape-setup-capf)))
#+end_src