diff options
| author | Steven Sojka <steelsojka@users.noreply.github.com> | 2021-03-24 09:12:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-24 09:12:03 -0500 |
| commit | 7984975a2fa8e4c526359edf471a493307c0529c (patch) | |
| tree | 46bb699428271a031b1bca60a5a942c86505049a /lua/nvim-treesitter/configs.lua | |
| parent | 09045354c0245ca866104c526bc57c2a06d7f381 (diff) | |
feat(install): allow ignore list when installing parsers (#1098)
Diffstat (limited to 'lua/nvim-treesitter/configs.lua')
| -rw-r--r-- | lua/nvim-treesitter/configs.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua index 29da2e88..973b9cb6 100644 --- a/lua/nvim-treesitter/configs.lua +++ b/lua/nvim-treesitter/configs.lua @@ -10,6 +10,7 @@ local M = {} local config = { modules = {}, ensure_installed = {}, + ignore_install = {}, update_strategy = 'lockfile', } -- List of modules that need to be setup on initialization. @@ -271,6 +272,7 @@ end -- @param user_data module overrides function M.setup(user_data) config.modules = vim.tbl_deep_extend('force', config.modules, user_data) + config.ignore_install = user_data.ignore_install or {} local ensure_installed = user_data.ensure_installed or {} if #ensure_installed > 0 then @@ -412,4 +414,8 @@ function M.get_update_strategy() return config.update_strategy end +function M.get_ignored_parser_installs() + return config.ignore_install or {} +end + return M |
