-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fix(treesitter): indent size for inspect_tree #28727
base: master
Are you sure you want to change the base?
Conversation
Before (with some indent-line plugin) when user's global After: Remark: we could instead set the default indent size for |
I don't think 'tabstop' should be changed, as there are no Tabs in the text. But maybe 'expandtab' is needed? |
Forgot to mention that tabstop, etc. are for the query editor rather than InspectTree. For InspectTree right, we don't have tabs --- but the default options for query editors will be noexpandtab and tabsize=8. I thus have added the |
Let's leave the query editor for now; the plan is to include the formatter from nvim-treesitter for query files (including the editor). |
I don't think this needs to block 0.10 |
@wookayin During feature freeze, we (only) use the milestone for actual blockers in order to manage the release process. Obviously this can and will be backported after the 0.10 release (and we can re-use the milestone for 0.10.x then). |
Problem: For :InspectTree, the tree viewer buffer with the filetype `query` does not explicitly set the tab size, which can mismatch with the indent size assumed by the TSTreeView implementation (default: 2). Solution: Set shiftwidth to be the same as TSTreeViewOpts, which defaults to 2.
Problem: For :InspectTree, the tree viewer buffer with the filetype
query
does not explicitly set the tab size, which can mismatch withthe indent size assumed by the TSTreeView implementation (default: 2).
Solution: Set shiftwidth to be the same as TSTreeViewOpts, which
defaults to 2.