EdenEast / nightfox.nvim

🦊A highly customizable theme for vim and neovim with support for lsp, treesitter and a variety of plugins.
MIT License
2.86k stars 134 forks source link

bug: some markdown capture groups are missing #412

Closed chrisgrieser closed 5 months ago

chrisgrieser commented 5 months ago

Neovim version (nvim -v)

NVIM v0.9.5

Operating system/version

macOS 14.1 (arm)

Describe the bug

A few markdown treesitter capture groups are missing, most notably:

Steps To Reproduce

Create a new file with

- foobar
- hello `world`

Expected Behavior

to have those groups highlighted

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
    {
        "nvim-treesitter/nvim-treesitter",
        build = ":TSUpdate",
        main = "nvim-treesitter.configs",
        opts = {
            ensure_installed = { "markdown", "markdown_inline" },
            highlight = { enable = true },
        },
    },
    { "EdenEast/nightfox.nvim" },
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("nightfox")