tree-sitter-grammars/tree-sitter-doxygen

[Question] Not applied after installation

Closed this issue · 5 comments

First, thanks for this repo.

But after I've installed the tree-sitter parser by:

local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.doxygen = {
  install_info = {
    url = "https://github.com/amaanq/tree-sitter-doxygen", -- local path or git repo
    files = { "src/parser.c", "src/scanner.c" }, -- note that some parsers also require src/scanner.c or src/scanner.cc
  },
  filetype = "cpp", -- if filetype does not match the parser name
}

and then :TSinstall doxygen, I can confirmed that the parser is sucessfully installed.
However, the doxygen comment in c/c++ is not highlighted.
Is my filetype set wrong? Thanks!

TSModuleInfo:
图片

amaanq commented

parser installation doesn't add queries, just wait for the nvim-ts pr.

Got it. Thanks.

amaanq commented

It's available now, do let me know of parsing issues in this repo though

Any special installation step needed?

OK. Now :TSInstall doxygen is available, and now it works very! Thanks very much.