Skip to content
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

opposite direction for length in before_regex() condition #440

Closed
name-snrl opened this issue Mar 10, 2024 · 0 comments · Fixed by #441
Closed

opposite direction for length in before_regex() condition #440

name-snrl opened this issue Mar 10, 2024 · 0 comments · Fixed by #441
Labels
bug Something isn't working

Comments

@name-snrl
Copy link
Contributor

Description

When I specify the length in the before_regex() condition, I expect the string to grow in the opposite direction.

Mapping bug

No response

Steps to reproduce

npairs.add_rules {
  rule('with', ';', 'nix'):with_pair(conds.before_regex('^%s*wit$', 4)):with_cr(conds.none())
}

nvim test.nix

type something like:
bla bla bla with

but pair won't appear

Minimal config

npairs.add_rules {
  rule('with', ';', 'nix'):with_pair(conds.before_regex('^%s*wit$', 4)):with_cr(conds.none())
}
@name-snrl name-snrl added the bug Something isn't working label Mar 10, 2024
name-snrl added a commit to name-snrl/nvim-autopairs that referenced this issue Mar 10, 2024
name-snrl added a commit to name-snrl/nvim-autopairs that referenced this issue Mar 19, 2024
name-snrl added a commit to name-snrl/nvim-autopairs that referenced this issue Mar 19, 2024
windwp pushed a commit that referenced this issue Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant