[NVIM] Skip plugin update check on nvim < 0.10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b4815d1130
commit
1752b31336
1 file changed
+4
@@ -118,6 +118,10 @@ call plug#end()
|
|||||||
" Check for plugin updates after the editor is responsive.
|
" Check for plugin updates after the editor is responsive.
|
||||||
lua << EOF
|
lua << EOF
|
||||||
local function check_plugin_updates()
|
local function check_plugin_updates()
|
||||||
|
if vim.system == nil then
|
||||||
|
return -- needs nvim >= 0.10
|
||||||
|
end
|
||||||
|
|
||||||
local plugins = {}
|
local plugins = {}
|
||||||
for name, plugin in pairs(vim.g.plugs or {}) do
|
for name, plugin in pairs(vim.g.plugs or {}) do
|
||||||
if vim.fn.isdirectory(plugin.dir) == 1 then
|
if vim.fn.isdirectory(plugin.dir) == 1 then
|
||||||
|
|||||||
Reference in new issue
Block a user