-
Notifications
You must be signed in to change notification settings - Fork 20
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
ignore_beginning
works differently between (
and "
#46
Comments
Hi @xulongwu4
That being said, if turned to true in your case, it will not jump out consistently of said node. Depending on the whitespace either out of the parantheses or up to the bracket. |
@abecodes Thanks for your reply. In my config, I set |
Hi @xulongwu4 I am short on time rn, but I am working on a rewrite and I try to tackle this behavior there 😊 I will let you know once it is ready. Thanks for finding and sharing. |
I want to add what I observed because I think the claim in the issue title is not completely correct (anymore?). Quoting @xulongwu4 :
I think it depends on where exactly in the string you are:
In other words: If the next character after the cursor is the closing character of the current "tabout context" it will jump out. Otherwise it will insert a TAB charachter. I actually find that behaviour useful. @abecodes Maybe you can confirm that this is always the case? |
Hi @mikehaertl, "Always" is a pretty powerful word here 🤣 I experienced what you are describing as well. But not consistently. Partly it depends on how treesitter does things and is partly to the plugin being my first experience with treesitter and lua. PRs are always welcome btw 👍 |
Hi, I have a question about the
ignore_beginning
option. The plugin does not seem to work consistently when this option is set to false.For example, I have the following
cpp
code snippet.Now if the cursor is inside the double quotes, pressing TAB will tab out. However, if the curosr is inside the parentheses (for example, right before the
+
sign), pressing TAB will insert a tab instead of tabbing out.I would expect tabout works when the cursor is inside a pair of parenthese as well.
My setup (I use
lazy.nvim
):The text was updated successfully, but these errors were encountered: