swiper
swiper copied to clipboard
`ivy-completion-in-region` prevent tempel snippet expanding
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:
- Install
ivy, tempel
and enable them. - create a file named by
templates
inuser-emacs-directory
and write the following code into it
;; -*- mode: lisp -*-
emacs-lisp-mode
(lambda "(lambda (" p ")" n> r> ")")
- In
elisp-mode
, inputlambda
andM-x tempel-expand
. Nothing happens except the minibuffer showsSole match
.
Remark:
If (setq completion-in-region-function #'completion--in-region)
, then tempel-expand
goes well.