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: @comment.note highlight is missing #407

Closed
chrisgrieser opened this issue Jan 24, 2024 · 0 comments · Fixed by #408
Closed

bug: @comment.note highlight is missing #407

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

Comments

@chrisgrieser
Copy link

chrisgrieser commented Jan 24, 2024

Neovim version (nvim -v)

NVIM v0.9.5

Operating system/version

macOS 14.1 (arm)

Describe the bug

@comment.note highlight is missing from the new treesitter capture groups is missing.

Pasted image 2024-01-24 at 12 37 28@2x
Pasted image 2024-01-24 at 12 37 53@2x

Steps To Reproduce

  • have a note with -- NOTE

Expected Behavior

NOTE being highlighted as the other comments, and just like it was highlighted in earlier versions of nightfox

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 = { "lua", "comment" },
			highlight = { enable = true },
		},
	},
	{ "EdenEast/nightfox.nvim" },
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("dawnfox")
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