diff options
| author | Folke Lemaitre <folke.lemaitre@gmail.com> | 2022-11-24 21:34:23 +0100 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-11-24 21:41:58 +0100 |
| commit | 37767540e5c7f920910b9daa4dfa1f891b4cd85c (patch) | |
| tree | cf1d4192eaa19043a2570347d2042cee190a08fb /lua | |
| parent | highlights(typescript): add satisfies keyword (#3852) (diff) | |
| download | nvim-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.lua | 2 |
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 |
