mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
fix: show errors when reload after installation fails
This commit is contained in:
parent
0598450eb8
commit
29304e16bb
2 changed files with 10 additions and 7 deletions
|
|
@ -232,7 +232,7 @@ end
|
|||
|
||||
---Recurses through all modules including submodules
|
||||
---@param accumulator function called for each module
|
||||
---@param root {[string]: TSModule} root configuration table to start at
|
||||
---@param root {[string]: TSModule}|nil root configuration table to start at
|
||||
---@param path string|nil prefix path
|
||||
local function recurse_modules(accumulator, root, path)
|
||||
root = root or config.modules
|
||||
|
|
@ -529,7 +529,7 @@ function M.reattach_module(mod_name, bufnr, lang)
|
|||
end
|
||||
|
||||
---Gets available modules
|
||||
---@param root {[string]:TSModule} table to find modules
|
||||
---@param root {[string]:TSModule}|nil table to find modules
|
||||
function M.available_modules(root)
|
||||
local modules = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue