Skip to content

Commit

Permalink
Respect completion-regexp-alist in Eglot's completion table
Browse files Browse the repository at this point in the history
See GitHub discussion #726

Suggested-by: Felicián Németh <[email protected]>
Suggested-by: JD Smith

* eglot (eglot-completion-at-point): use all-completions.
  • Loading branch information
joaotavora committed Sep 5, 2021
1 parent 122dbb9 commit 9b63f21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -2363,7 +2363,9 @@ is not active."
((null action) ; try-completion
(try-completion probe (funcall proxies)))
((eq action t) ; all-completions
(cl-remove-if-not
(all-completions
""
(funcall proxies)
(lambda (proxy)
(let* ((item (get-text-property 0 'eglot--lsp-item proxy))
(filterText (plist-get item :filterText)))
Expand Down

0 comments on commit 9b63f21

Please sign in to comment.