refactor: nitpicking

This commit is contained in:
Sirisak Lueangsaksri 2021-11-06 09:02:59 +07:00 committed by Stephan Seitz
parent aaf157a6a9
commit f6dcbe66b0
3 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ All modules are disabled by default and need to be activated explicitly in your
lua <<EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
sync_install = true, -- install languages synchronously
sync_install = false, -- install languages synchronously
ignore_install = { "javascript" }, -- List of parsers to ignore installing
highlight = {
enable = true, -- false will disable the whole extension

View file

@ -368,7 +368,7 @@ function M.setup(user_data)
local ensure_installed = user_data.ensure_installed or {}
if #ensure_installed > 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

View file

@ -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 = {