mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
fix: warn when user uninstalls parser than is in their ensure_installed
Fixes #2777
This commit is contained in:
parent
11a8812a47
commit
d011532d73
2 changed files with 15 additions and 0 deletions
|
|
@ -401,6 +401,7 @@ function M.setup(user_data)
|
|||
end
|
||||
|
||||
config.modules.ensure_installed = nil
|
||||
config.ensure_installed = ensure_installed
|
||||
|
||||
recurse_modules(function(_, _, new_path)
|
||||
local data = utils.get_at_path(config.modules, new_path)
|
||||
|
|
@ -578,4 +579,8 @@ function M.get_ignored_parser_installs()
|
|||
return config.ignore_install or {}
|
||||
end
|
||||
|
||||
function M.get_ensure_installed_parsers()
|
||||
return config.ensure_installed or {}
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue