-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the Evil-Cleverparens layer breaks evil-surround #5666
Comments
Not sure 100% but flagging it cc @luxbock |
Cleverparens works by overriding certain Vim commands to better respect parentheses. Spacemacs moved the default surround key, so I'm not certain an upstream fix will be enough. We need surround's version for those keys, so we might need a way to load evil-cleverparens first and evil-surround second, or have the cleverparens layer put just those keybindings back to Spacemacs' default (i.e. surround) after it loads the package. The cleverparens layer documentation didn't explain very well how to set it up, see #5569. The best alternative to cleverparens is parinfer, but that isn't working right either, and doesn't even have a layer yet, see #5574. |
Changing the key bindings should not prevent an evil-surround integration in cleverparens from working in Spacemacs. |
Also breaks evil-snipe, even when snipe if enlisted after in dotspacemacs-configuration-layers Putting evil-cleverparens first in the list, like @gilch suggested, however, fixed evil-surround, at least. |
Here is how I enable the evil-surround operations with I think this needs to happen once If anyone can propose a fix that gets around it I'm happy to fix it upstream. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Description
Can't use evil-surround when evil-cleverparens is active.
Reproduction guide
SPC f e d
addevil-cleverparens
todotspacemacs-configuration-layers
in
dotspacemacs/user-config
.Reload spacemacs and try using surround in that mode.
The text was updated successfully, but these errors were encountered: