Closed cova-fe closed 1 year ago
Never mind, I found that I had to enclose the configuration in a function block. Here it is, in case someone gets the same issue with lazy:
{
"HiPhish/nvim-ts-rainbow2",
config = function()
-- lazy = true,
require('nvim-treesitter.configs').setup {
rainbow = {
enable = true,
-- list of languages you want to disable the plugin for
disable = { 'jsx', 'cpp' },
-- Which query to use for finding delimiters
query = 'rainbow-parens',
-- Highlight the entire buffer all at once
strategy = require('ts-rainbow').strategy.global,
},
}
end
},
Describe the bug
I'm trying to use this module with lunarvim setup. However, on startup I get this error:
And it seems not completely off, as the ts-rainbow.lua is not present, only rainbow.ts can be found searching in plugins directory. Please note that lunarvim uses Lazy to load plugins, not Packer. I can investigate if the issue can be related to Lazy, not sure if the error above can be related to Lazy, though. Steps to reproduce I use this configuration in config.lua:
Expected behavior
No error in loading plugin.
Screenshots