rose-pine / neovim

Soho vibes for Neovim
MIT License
2.37k stars 150 forks source link

bug: @float not capture group not highlighted by rose-pine #272

Closed abvee closed 6 months ago

abvee commented 6 months ago

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 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
})
mvllow commented 6 months ago

Closed by #273, thanks again :)