HiPhish / rainbow-delimiters.nvim

Rainbow delimiters for Neovim with Tree-sitter
https://gitlab.com/HiPhish/rainbow-delimiters.nvim
Apache License 2.0
560 stars 42 forks source link

[Bug]: astro not working #127

Open beaumccartney opened 4 months ago

beaumccartney commented 4 months ago

Neovim version

NVIM v0.10.0 Build type: Release LuaJIT 2.1.1716656478 Run "nvim -V1 -v" for more info

Language affected

Astro

Query

No response

Strategy

No response

Description

no rainbow tags like html

minimal repro below, issue reproduces on the astro test file in the repo

local path_package = vim.fn.stdpath('data') .. '/site/'
local mini_path = path_package .. 'pack/deps/start/mini.nvim'
if not vim.loop.fs_stat(mini_path) then
    vim.cmd('echo "Installing `mini.nvim`" | redraw')
    local clone_cmd = {
        'git', 'clone', '--filter=blob:none',
        'https://github.com/echasnovski/mini.nvim', mini_path
    }
    vim.fn.system(clone_cmd)
    vim.cmd('packadd mini.nvim | helptags ALL')
    vim.cmd('echo "Installed `mini.nvim`" | redraw')
end

-- Set up 'mini.deps' (customize to your liking)
require'mini.deps'.setup { path = { package = path_package } }

local add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later

add('HiPhish/rainbow-delimiters.nvim')
add({
    source = 'nvim-treesitter/nvim-treesitter',
    checkout = 'master',
    hooks = { post_checkout = function() vim.cmd('TSUpdate') end },
})
require'nvim-treesitter.configs'.setup {
    ensure_installed = {
        'astro',
    },
}
vim.api.nvim_create_autocmd("Filetype", {
    callback = function(ev)
        vim.treesitter.start()
    end,
})
HiPhish commented 1 week ago

I have pushed a major update to rainbow-delimiters, can you please try the current master or the tag v0.7.0?

beaumccartney commented 2 days ago

still not working unfortunately on master or 0.7.0