Closed hantaotaohan closed 1 year ago
headlines.nvim needs treesitter, and there is no treesitter grammar for vimwiki, sorry.
If you are using Vimwiki with Markdown syntax, you can do
require("headlines").setup {
vimwiki = { -- this might be ['vimwiki.markdown'] depending on your vimwiki configuration
treesitter_language = "markdown",
-- copy configuration for markdown here
},
}
And you should also consider to do https://github.com/vimwiki/vimwiki/issues/1367#issuecomment-1762420036.
If someone stumble upon this, here's a solution without having to copy&paste the whole markdown config:
local headlines = require("headlines")
headlines.setup({
vimwiki = vim.tbl_extend(
"force",
{ treesitter_language = "markdown" },
headlines.config.markdown
)
})
how to support vimwiki?