HiPhish / rainbow-delimiters.nvim

Rainbow delimiters for Neovim with Tree-sitter
https://gitlab.com/HiPhish/rainbow-delimiters.nvim
Apache License 2.0
470 stars 35 forks source link

feat(nim): added queries and tests #55

Closed aMOPel closed 8 months ago

HiPhish commented 8 months ago

How and from there did you install the Nim parser? When I execute TSInstall nim I get Parser not available for language "nim".

aMOPel commented 8 months ago

The pr to add nim to nvim-treesitter was only merged 2 weeks ago. Maybe you need to update you plugin?

HiPhish commented 8 months ago

I have made a couple of changes:

We are no longer bound to the limitation of just one opening and one closing node per container. Both the [, ] and the (, ) can be part of the same container on the same level.

(cast
  type: "[" @delimiter
  type: "]" @delimiter
  value: "(" @delimiter
  value: ")" @delimiter @sentinel) @container

If you agree with my changes please squash the commits into one, then I can merge your PR.

aMOPel commented 8 months ago

Thank you :)

All done.

HiPhish commented 8 months ago

Merged, thank you very much.