diff options
| -rw-r--r-- | lockfile.json | 3 | ||||
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 10 | ||||
| -rw-r--r-- | queries/help/highlights.scm | 14 |
3 files changed, 27 insertions, 0 deletions
diff --git a/lockfile.json b/lockfile.json index 2f89758a..05a19fe2 100644 --- a/lockfile.json +++ b/lockfile.json @@ -299,6 +299,9 @@ "vim": { "revision": "c9d70082af14988842eb071c6c0b07e8d1d993ac" }, + "help": { + "revision": "5e4851189b3d005275263cfc7f5a4a6ea2dbdf9b" + }, "vue": { "revision": "91fe2754796cd8fba5f229505a23fa08f3546c06" }, diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 5d6c8f75..d767095c 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -827,6 +827,16 @@ list.vim = { maintainers = { "@vigoux" }, } +list.help = { + install_info = { + url = "https://github.com/vigoux/tree-sitter-vimdoc", + files = { "src/parser.c", "src/scanner.c" }, + }, + filetype = "help", + maintainers = { "@vigoux" }, + experimental = true, +} + list.json5 = { install_info = { url = "https://github.com/Joakker/tree-sitter-json5", diff --git a/queries/help/highlights.scm b/queries/help/highlights.scm new file mode 100644 index 00000000..e2fb6553 --- /dev/null +++ b/queries/help/highlights.scm @@ -0,0 +1,14 @@ +(headline) @text.title +(column_heading) @text.title +(tag + "*" @conceal (#set! conceal "") + name: (_) @label) +(option + "'" @conceal (#set! conceal "") + name: (_) @text.literal) +(hotlink + "|" @conceal (#set! conceal "") + destination: (_) @text.uri) +(backtick + "`" @conceal (#set! conceal "") + content: (_) @string) |
