aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/language.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-02-22 13:07:21 +0100
committerGitHub <noreply@github.com>2025-02-22 13:07:21 +0100
commit2e5b560482fb76342387e7183283efe9d431f114 (patch)
tree1c9df3791d2262098977a3da39912c18808ec7a3 /runtime/lua/vim/treesitter/language.lua
parent5cead869fb6ddc57594c0dc7e6e575f9427630c8 (diff)
downloadrneovim-2e5b560482fb76342387e7183283efe9d431f114.tar.gz
rneovim-2e5b560482fb76342387e7183283efe9d431f114.tar.bz2
rneovim-2e5b560482fb76342387e7183283efe9d431f114.zip
feat(treesitter): table of contents for checkhealth, markdown (#32282)
Problem: It's difficult to navigate large structured text files (vim help, checkhealth, Markdown). Solution: Support `gO` for table of contents and `]]`/`[[` for moving between headings for all these filetypes using treesitter queries. Refactor: colorization of highlight groups is moved to the `help` ftplugin while headings-related functionality is implemented in a private `vim.treesitter` module for possible future use for other filetypes.
Diffstat (limited to 'runtime/lua/vim/treesitter/language.lua')
-rw-r--r--runtime/lua/vim/treesitter/language.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/treesitter/language.lua b/runtime/lua/vim/treesitter/language.lua
index 16d19bfc5a..38d309a102 100644
--- a/runtime/lua/vim/treesitter/language.lua
+++ b/runtime/lua/vim/treesitter/language.lua
@@ -5,6 +5,7 @@ local M = {}
---@type table<string,string>
local ft_to_lang = {
help = 'vimdoc',
+ checkhealth = 'vimdoc',
}
--- Returns the filetypes for which a parser named {lang} is used.