mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
Fix lsp-mode
not cooperating well with cape
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
6f18aa5f55
commit
7e75c66250
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue