Skip to content

fix(treesitter): Add indentation fallback#1988

Open
sebastianstudniczek wants to merge 1 commit intonvim-lua:masterfrom
sebastianstudniczek:fix/treesitter-indent-fallback
Open

fix(treesitter): Add indentation fallback#1988
sebastianstudniczek wants to merge 1 commit intonvim-lua:masterfrom
sebastianstudniczek:fix/treesitter-indent-fallback

Conversation

@sebastianstudniczek
Copy link
Copy Markdown

@sebastianstudniczek sebastianstudniczek commented Apr 10, 2026

Add fallback for languages which does not have indent query available, therefore neovim will use the built in indentation functions.

For example C# currently does not have treesitter indent query available

Installed languages     H L F I J ~
- bash                  ✓ ✓ ✓ ✓ ✓
- c                     ✓ ✓ ✓ ✓ ✓
- c_sharp               ✓ ✓ ✓ . ✓
- diff                  ✓ . ✓ . ✓
- dtd                   ✓ ✓ ✓ . ✓

Output from checking indentexpr for C# file after change

20:13:49 msg_show.list_cmd   set indentexpr?   indentexpr=GetCSIndent(v:lnum)

@sebastianstudniczek sebastianstudniczek changed the title Add indentation fallback fix(treesitter): Add indentation fallback Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant