aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorFolke Lemaitre <folke.lemaitre@gmail.com>2022-11-24 21:34:23 +0100
committerChristian Clason <christian.clason@uni-due.de>2022-11-24 21:41:58 +0100
commit37767540e5c7f920910b9daa4dfa1f891b4cd85c (patch)
treecf1d4192eaa19043a2570347d2042cee190a08fb /lua
parenthighlights(typescript): add satisfies keyword (#3852) (diff)
downloadnvim-treesitter-37767540e5c7f920910b9daa4dfa1f891b4cd85c.tar
nvim-treesitter-37767540e5c7f920910b9daa4dfa1f891b4cd85c.tar.gz
nvim-treesitter-37767540e5c7f920910b9daa4dfa1f891b4cd85c.tar.bz2
nvim-treesitter-37767540e5c7f920910b9daa4dfa1f891b4cd85c.tar.lz
nvim-treesitter-37767540e5c7f920910b9daa4dfa1f891b4cd85c.tar.xz
nvim-treesitter-37767540e5c7f920910b9daa4dfa1f891b4cd85c.tar.zst
nvim-treesitter-37767540e5c7f920910b9daa4dfa1f891b4cd85c.zip
fix(installer): don't update that are not installed (exclude global parsers)
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/install.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index 0f5dccb3a..d7fdc4a51 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -115,7 +115,7 @@ end
---@return table
local function outdated_parsers()
return vim.tbl_filter(function(lang)
- return needs_update(lang)
+ return is_installed(lang) and needs_update(lang)
end, info.installed_parsers())
end