Partially highlighted for the comment in codeblock
lotusirous opened this issue · comments
Kha Nguyen commented
Describe the bug
In the markdown file, the comment inside a code block is highlighted partially, see the below image.
To Reproduce
Steps to reproduce the behavior:
treesitter
config
ensure_installed = {
"go",
"lua",
"sql",
"python",
"javascript",
"typescript",
"vim",
"vimdoc",
"markdown",
"yaml",
"json",
"rust",
}, -- one of "all", "maintained" (parsers with maintainers), or a list of languages
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
ignore_install = { "" }, -- List of parsers to ignore installing
autopairs = { enable = true },
highlight = {
enable = true, -- false will disable the whole extension
disable = { "" }, -- list of language that will be disabled
additional_vim_regex_highlighting = true,
},
-- this options is awful experience for indent
-- indent = {enable = true, disable = {"yaml"}},
context_commentstring = { enable = true, enable_autocmd = false }
}
gruvbox
config
require("gruvbox").setup({
undercurl = true,
underline = true,
bold = true,
italic = {
strings = true,
comments = true,
operators = false,
folds = true,
},
strikethrough = true,
invert_selection = false,
invert_signs = false,
invert_tabline = false,
invert_intend_guides = false,
inverse = true, -- invert background for search, diffs, statuslines and errors
contrast = "hard", -- can be "hard", "soft" or empty string
palette_overrides = {},
overrides = {
NormalFloat = { fg = "#f9f5d7", bg = "#32302f" },
},
dim_inactive = false,
transparent_mode = true,
})
vim.cmd.colorscheme("gruvbox")
vim.o.background = "dark"
-- Lightline configuration
vim.g.lightline = { colorscheme = "gruvbox" }
Expected behavior
The codeblock inside markdown is highlighted properly
Kha Nguyen commented
Fixed since it's cache problem. Remove all caches to fix it.