You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Markdown tree-sitter is now available, providing different queries to match against and, most importantly, language injections for code blocks:
Feature request
I'd like to have this highlight when using onedark.vim and tree-sitter out of the box, since using tree-sitter deactivates the current onedark highlights on markdown (by default). For now, I have this in my tree-sitter config to achieve the above result:
require("nvim-treesitter.configs").setup({
highlight= {
enable=true,
custom_captures= {
-- this should be Keyword but I prefer the hs in purple
["text.title"] ="Question",
-- this does not work yet (problem with upstream I think)
["text.reference"] ="Keyword",
["text.emphasis"] ="markdownItalic",
["text.uri"] ="markdownUrl",
}
},
})
Notice how the markdown tree-sitter does not provide the full spec yet.
The text was updated successfully, but these errors were encountered:
Related to #250, thanks to nvim-treesitter/nvim-treesitter@387a8f3
Description
Markdown tree-sitter is now available, providing different queries to match against and, most importantly, language injections for code blocks:
Feature request
I'd like to have this highlight when using onedark.vim and tree-sitter out of the box, since using tree-sitter deactivates the current onedark highlights on markdown (by default). For now, I have this in my tree-sitter config to achieve the above result:
Notice how the markdown tree-sitter does not provide the full spec yet.
The text was updated successfully, but these errors were encountered: