[NVIM] Make update checker portable

This commit is contained in:
Fabian Ising
2026-08-24 09:44:08 +02:00
parent 67885075d3
commit 13ffdfdb04
+8 -1
View File
@@ -128,7 +128,14 @@ local function check_plugin_updates()
local concurrency = 2
local function git_command(args)
local command = { 'ionice', '-c', '3', 'nice', '-n', '10', 'git' }
local command = {}
if vim.fn.executable('ionice') == 1 then
vim.list_extend(command, { 'ionice', '-c', '3' })
end
if vim.fn.executable('nice') == 1 then
vim.list_extend(command, { 'nice', '-n', '10' })
end
table.insert(command, 'git')
vim.list_extend(command, args)
return command
end