diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2021-05-01 05:19:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-01 08:19:48 -0400 |
commit | 27da5511a0c0b12fcabe29cf38c3f8a0f0b444b9 (patch) | |
tree | bd0c6670b2b0cca8400117842ed2abf9668dac90 /runtime/lua/vim/treesitter/health.lua | |
parent | ca6107cfbc1b9994d8a36494965f0b270dc2b77b (diff) | |
download | rneovim-27da5511a0c0b12fcabe29cf38c3f8a0f0b444b9.tar.gz rneovim-27da5511a0c0b12fcabe29cf38c3f8a0f0b444b9.tar.bz2 rneovim-27da5511a0c0b12fcabe29cf38c3f8a0f0b444b9.zip |
docs: Treesitter (#13260)
* doc & fixes: Generate treesitter docs
* fixup to treesitter-core
* docs(treesitter): fix docs for most functions
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
Diffstat (limited to 'runtime/lua/vim/treesitter/health.lua')
-rw-r--r-- | runtime/lua/vim/treesitter/health.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/treesitter/health.lua b/runtime/lua/vim/treesitter/health.lua index dd0b11a6c7..e031ba1bd6 100644 --- a/runtime/lua/vim/treesitter/health.lua +++ b/runtime/lua/vim/treesitter/health.lua @@ -1,10 +1,14 @@ local M = {} local ts = vim.treesitter +--- Lists the parsers currently installed +--- +---@return A list of parsers function M.list_parsers() return vim.api.nvim_get_runtime_file('parser/*', true) end +--- Performs a healthcheck for treesitter integration function M.check_health() local report_info = vim.fn['health#report_info'] local report_ok = vim.fn['health#report_ok'] |