You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using yasnippet along with auto complete and ac-nrepl.
When I start a fresh emacs session, open my .clj file, type something like def, I see bunch of normal candidates and highlighted yasnippet's target. I can then tab to complete or ret to call yas-expand.
However, I noticed that after I start nrepl, and evaluate the (ns ...) form of my clj file, I can no longer see yasnippet's target in auto-complete lists.
I than found out that if I comment out (add-to-list 'ac-sources 'ac-source-nrepl-vars)
in ac-nrepl-setup , the yasnippet's target appears again.
The text was updated successfully, but these errors were encountered:
Presumably you just need to make sure that yasnippet's completion source appears earlier in the ac-sources list. Since ac-nrepl-setup uses (add-to-list ...), the ac-nrepl sources will be added at the beginning of ac-sources. To override this, which I believe is a reasonable default behaviour, you can write code something like this:
I am using yasnippet along with auto complete and ac-nrepl.
When I start a fresh emacs session, open my .clj file, type something like
def
, I see bunch of normal candidates and highlighted yasnippet's target. I can thentab
to complete orret
to call yas-expand.However, I noticed that after I start nrepl, and evaluate the
(ns ...)
form of my clj file, I can no longer see yasnippet's target in auto-complete lists.I than found out that if I comment out
(add-to-list 'ac-sources 'ac-source-nrepl-vars)
in
ac-nrepl-setup
, the yasnippet's target appears again.The text was updated successfully, but these errors were encountered: