Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lsp-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,9 @@ The return is nil or in range of (0, inf)."
(after-completion-fn (lambda (result)
(when (stringp result)
(lsp-completion--clear-cache))
(setq-local lsp-inhibit-lsp-hooks nil))))
(setq-local lsp-inhibit-lsp-hooks nil)))
(lsp-capf-in-capfs-p
(memq #'lsp-completion-at-point completion-at-point-functions)))
(cond
(lsp-completion-mode
(make-local-variable 'completion-at-point-functions)
Expand Down Expand Up @@ -842,7 +844,8 @@ The return is nil or in range of (0, inf)."
t))
(add-hook 'lsp-unconfigure-hook #'lsp-completion--disable nil t))
(t
(remove-hook 'completion-at-point-functions #'lsp-completion-at-point t)
(unless lsp-capf-in-capfs-p
(remove-hook 'completion-at-point-functions #'lsp-completion-at-point t))
(setq-local completion-category-defaults
(cl-remove 'lsp-capf completion-category-defaults :key #'cl-first))
(setq-local completion-styles-alist
Expand Down
Loading