-
Notifications
You must be signed in to change notification settings - Fork 6
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
Delete and new indent are not working #27
Comments
BS isn't mapped by default; As for the CR problem, did you (I'm currently on my way to bed, so I'll read your reply tomorrow) |
The delete pair issue is resolved. But the new line is still not indented even after I |
@LunarWatcher thanks for your work! Maybe it't better to say user need enable at Feature delete part:
|
Had to
But this seems to be relatively context-dependent. The same behavior isn't present for (), which yields:
(which happens with my config too) #26 is a fairly interesting case though: using the same cino and other indent options, this (
Yields very different results.
but with both nvim and gvim on the same default config (shown after this block):
With:
Doesn't help if I copy over my |
Tracked it down to vim-polyglot. To make a long story short:
Enables some indentation. Configuration from there is required to make the resulting indentation sane, which I'm gonna have to look into whether or not I can do with just Polyglot does seem to reduce some indent problems in a few languages by providing custom And just so that's clarified, I'm not gonna write a feature to indent manually for a number of reasons that're largely intertwined, and starts with tabs and spaces, and varying shiftwidth. The rest of the argument is fairly self-explanatory if you've seen how dedicated some people are to tabs vs. spaces and other styling options. I can detect shiftwidth, but not tab vs. space preference, and file-specific configuration from there is honestly a redundant use of code when vim has systems in place for it that only require a bit of config, apparently. I'm gonna make a "sensible standard" for |
... actually, that's not gonna work either. Python is one of the languages that don't do cindent, which means there's a number of indentation systems. Arguably though, indentation inaccuracies are a separate problem. |
Setting those indent option makes the newline indented. Thank for your help. |
OS (name + version; i.e. Linux Mint 20, Windows 10 2004, Macos Big Sur, etc.): Arch Linux
What vim? (+ version) (i.e. vim, gvim, nvim, nvim-qt, mvim, ...): nvim 0.4.4
Reproduced in other variants of Vim? (Optional): vim 8.2.2653
Autopairs config (if applicable): Clean config, just
Describe the bug
<BS>
compared to without plugin, The original jiangmiao plugin doesn't have this issue.<CR>
inside pair adds newline but it is not indented. The jiangmiao has this problem.Steps to reproduce
[
+<BS>
produces]
, expected to delete pair completely[
+<CR>
+k
producesexpected output:
The text was updated successfully, but these errors were encountered: