Some of the queries for languages in nvim-treesitter name their float capture group @float instead of @number.float.
For example, the go queries use @float. Rose-pine doesn't highlight this group, so all floats in the go language when using treesitter for syntax highlighting are unhighlighted.
Repro
vim.cmd "colorscheme rose-pine-moon"
--enable treesitter. This section just starts treesitter
function checkSyntax()
if not pcall(vim.treesitter.start) then
print("Tree Sitter not enabled")
vim.cmd('syntax on')
end
end
local syntax = vim.api.nvim_create_augroup("SyntaxChecking", { clear = true })
vim.api.nvim_create_autocmd({"Filetype"}, {
pattern = "*",
group = syntax,
callback = checkSyntax
})
Neovim version (nvim -v)
NVIM v0.10.0
Terminal / multiplexer
tmux
Describe the bug
Some of the queries for languages in nvim-treesitter name their float capture group
@float
instead of@number.float
.For example, the
go
queries use@float
. Rose-pine doesn't highlight this group, so all floats in thego
language when using treesitter for syntax highlighting are unhighlighted.Repro