vim-matchup
vim-matchup copied to clipboard
Documentation on how to add Treesitter support for a custom language
I would like to add support for C# by just inheriting the basic C syntax.
I have tried adding a /after/queries/cs/matchup.scm file with just ; inherits c without any luck. (I confirmed that C files are working just fine as expected).
What else is needed to make this work? Adding some documentation would be appreciated!
I figured out it should have been in a c_sharp folder, not CS, however now I get errors about undefined node type.
You can use the :InspectTree command when editing a C# file (requires recent neovim) to check what the exact nodes are that C# is parsed to. This is probably (very?) different from C.