Open MinaMatta98 opened 3 weeks ago
Looks like there was a change in the upstream Go parser. I have pushed a fix, please try the current master
branch.
Hello,
It works.
I pinned my lazy config as follows:
{
"https://gitlab.com/HiPhish/rainbow-delimiters.nvim",
branch = "master",
dependencies = "nvim-treesitter/nvim-treesitter",
event = "FileType",
enabled = true,
config = function()
local rainbow_delimiters = require("rainbow-delimiters")
require("rainbow-delimiters.setup").setup({
strategy = {
[""] = rainbow_delimiters.strategy["global"],
vim = rainbow_delimiters.strategy["local"],
},
query = {
[""] = "rainbow-delimiters",
lua = "rainbow-blocks",
},
priority = {
[""] = 110,
lua = 210,
},
highlight = {
"RainbowDelimiterRed",
"RainbowDelimiterYellow",
"RainbowDelimiterBlue",
"RainbowDelimiterOrange",
"RainbowDelimiterGreen",
"RainbowDelimiterViolet",
"RainbowDelimiterCyan",
},
})
end,
},
And no more errors. Thank you!
FYI, your config can be made shorter if you omit all the setting which you are setting to the defaults anyway. In your case that's the highlights and the settings which have the empty string as their key.
This plugin works out of the box without any settings, you only need to specify that which you are changing.
Yes, but I purposefully paste the settings so that I don't have to go back to the repo to find them if I need to 😅.
Cheers for the advice
You can find all settings under :h rb-delimiters-setup
, you don't have to look up them up in the repo. But it's not as if those redundant settings cause any harm either, so use whatever works for you.
Neovim version
NVIM v0.10.1 Build type: Release LuaJIT 2.1.1720049189
Language affected
Go / markdown_inline
Query
No response
Strategy
No response
Description
The original bug report was sent to the team at tree sitter: https://github.com/tree-sitter/tree-sitter/issues/3536#issue-2471829552
They said I should come here.
My specs and distro:
Error on vim.lsp.hover
Tree Sitter Check Health:
I edited /usr/share/nvim/runtime/lua/vim/treesitter/query.lua line 252 to output the language in question. When hovering above a symbol, the language used is specifically markdown_inline. This is contrasted with doing the same thing in RUST, which returns...rust. I don't get errors parsing rust.
Commentary from the tree-sitter team:
EDIT: No, the error
points to that plugin bundling outdated queries. Please complain there.
Originally posted by @clason in https://github.com/tree-sitter/tree-sitter/issues/3536#issuecomment-2295203727