swiper icon indicating copy to clipboard operation
swiper copied to clipboard

`ivy-completion-in-region` prevent tempel snippet expanding

Open allenryb opened this issue 3 years ago • 0 comments

I am trying the new snippet package tempel . But tempel-expand can't expand snippet name at point if ivy-mode is enabled. I have asked the contributor of tempel in issue 27 of tempel . It seems a problem of ivy-completion-in-region.

Steps to reproduce:

  1. Install ivy, tempel and enable them.
  2. create a file named by templates in user-emacs-directory and write the following code into it
;; -*- mode: lisp -*-

emacs-lisp-mode

(lambda "(lambda (" p ")" n> r> ")")
  1. In elisp-mode, input lambda and M-x tempel-expand. Nothing happens except the minibuffer shows Sole match.

Remark: If (setq completion-in-region-function #'completion--in-region), then tempel-expand goes well.

allenryb avatar Jan 19 '22 01:01 allenryb