Support per-language indent config for ibl #1283
Labels
enhancement
New feature or request
treesitter
Treesitter related issues
ui
General user interface related issues
Feature description
Problem: Currently we maintain an insanely long list of Treesitter nodes that can be used as starting points for the next level of indentation in ibl. The problem is, most languages only need a small subset of these nodes. This could lead to performance implications on large files and affect overall parsing efficiency.
Possible Solution: Now that Treesitter support for indentation is almost complete for most programming languages, we can easily define per-language indent nodes using the ones specified in the
@indent.begin
capture inindents.scm
. However, some effort may be needed to support this on a per-language basis.Additional information
Below is the list of programming languages currently supported by Treesitter-indent:
html_tags
)cpp
)html
)cpp
)c
)json
)cpp
)html_tags
)ecma
,jsx
)json
)lua
)c
)php_only
)The text was updated successfully, but these errors were encountered: