diff --git a/README.md b/README.md index 3b7c6fc75..f4d82db58 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ All modules are disabled by default and need to be activated explicitly in your lua < 0 then if user_data.sync_install then - require("nvim-treesitter.install").ensure_sync_installed(ensure_installed) + require("nvim-treesitter.install").ensure_installed_sync(ensure_installed) else require("nvim-treesitter.install").ensure_installed(ensure_installed) end diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 8b7dd042d..599fa3017 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -521,7 +521,7 @@ function M.write_lockfile(verbose, skip_langs) end M.ensure_installed = install { exclude_configured_parsers = true } -M.ensure_sync_installed = install { with_sync = true, exclude_configured_parsers = true } +M.ensure_installed_sync = install { with_sync = true, exclude_configured_parsers = true } M.commands = { TSInstall = {