Skip to content

Commit

Permalink
[compleseus] fix hack for company-capf (syl20bnr#15652)
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhvg authored Jul 21, 2022
1 parent d428d71 commit 5dc773e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layers/+completion/compleseus/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@
(defun compleseus/init-orderless ()
(use-package orderless
:init
;; company-capf is messed up with orderless
;; https://github.com/oantolin/orderless/issues/48#issuecomment-856750410
;; too intrusive and disrupts lsp
(define-advice company-capf (:around (orig-fun &rest args) set-completion-styles)
;; when lsp is on stay away
(if lsp-completion-mode
(if (bound-and-true-p lsp-completion-mode)
(apply orig-fun args)
(let ((completion-styles '(basic partial-completion orderless)))
(apply orig-fun args))))
Expand Down

0 comments on commit 5dc773e

Please sign in to comment.