mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix: avoid installing parsers multiple times when using auto_install
This commit is contained in:
parent
599fd416c8
commit
013c744b06
1 changed files with 2 additions and 2 deletions
|
|
@ -430,8 +430,8 @@ function M.setup_auto_install()
|
|||
pattern = { "*" },
|
||||
callback = function()
|
||||
local lang = parsers.get_buf_lang()
|
||||
if parsers.get_parser_configs()[lang] and not parsers.has_parser(lang) then
|
||||
install { ask_reinstall = true } { lang }
|
||||
if parsers.get_parser_configs()[lang] and not is_installed(lang) then
|
||||
install() { lang }
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue