HiPhish / rainbow-delimiters.nvim

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

[Bug]: plugin does not work for different file types eg. json #17

Closed Kerwood closed 1 year ago

Kerwood commented 1 year ago

Neovim version

v0.9.1

Language affected

JSON/Rust/Bash/Javascript

Query

No response

Strategy

No response

Description

I added HiPhish/rainbow-delimiters.nvim as a dependency for treesitter without any configuration and it seems to work as intended on Lua files. But I cant get it to work with JSON, Rust, Bash or Javascript.

schardev commented 1 year ago

Duplicate #14.

HiPhish commented 1 year ago

without any configuration and it seems to work as intended on Lua files.

Yes, the plugin does not need an configuration to work.

But I cant get it to work with JSON, Rust, Bash or Javascript.

Do you have the Tree-sitter parsers for those languages installed? Without a parser Neovim will not be able to understand the structure of your code. Neovim comes out of the box with a parser for Lua, so that explains why Lua works by default.

Kerwood commented 1 year ago

Thank you @HiPhish, I feel like an idiot sandwich :)

image

HiPhish commented 1 year ago

Closing this as completed then.