diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-01 22:28:36 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-26 13:35:17 -0700 |
| commit | d011532d737449dde60afe1cba37d57d9bea7c69 (patch) | |
| tree | d5b9ce7a0e73e3383ce4f88acf758e4157a5276f /lua/nvim-treesitter/configs.lua | |
| parent | 11a8812a477969e913913b51550e14cdb4bfcb8c (diff) | |
fix: warn when user uninstalls parser than is in their ensure_installed
Fixes #2777
Diffstat (limited to 'lua/nvim-treesitter/configs.lua')
| -rw-r--r-- | lua/nvim-treesitter/configs.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua index b720bdfd..04099d32 100644 --- a/lua/nvim-treesitter/configs.lua +++ b/lua/nvim-treesitter/configs.lua @@ -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 |
