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

[Bug]: Can't work on NVIM v0.10.0-dev-742+g12ccea596 #30

Closed ZENOTME closed 10 months ago

ZENOTME commented 10 months ago

Neovim version

No response

Language affected

No response

Query

No response

Strategy

No response

Description

I set up the plugin using following config but it didn't work. 

local rainbow_delimiters = require 'rainbow-delimiters'

vim.g.rainbow_delimiters = {
    strategy = {
        [''] = rainbow_delimiters.strategy['global'],
        vim = rainbow_delimiters.strategy['local'],
    },
    query = {
        [''] = 'rainbow-delimiters',
        lua = 'rainbow-blocks',
    },
    highlight = {
        'RainbowDelimiterRed',
        'RainbowDelimiterYellow',
        'RainbowDelimiterBlue',
        'RainbowDelimiterOrange',
        'RainbowDelimiterGreen',
        'RainbowDelimiterViolet',
        'RainbowDelimiterCyan',
    },
}

Do I forget to config other thing like tree-sitter? Or is cause by my color theme: gruvbo?

ZENOTME commented 10 months ago

Install it like any other Neovim plugin. You will need a Tree-sitter parser for each language you want to use rainbow delimiters with.

Sorry...I guess it cause by this...