Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: some markdown capture groups are missing #412

Closed
chrisgrieser opened this issue Jan 25, 2024 · 0 comments · Fixed by #414
Closed

bug: some markdown capture groups are missing #412

chrisgrieser opened this issue Jan 25, 2024 · 0 comments · Fixed by #414
Labels
bug Something isn't working

Comments

@chrisgrieser
Copy link

chrisgrieser commented Jan 25, 2024

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:

  • @markup.list
  • @markup.raw.markdown_inline

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")
@chrisgrieser chrisgrieser added the bug Something isn't working label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant