From 13ffdfdb04af39c64e66234353d899bb5a56a5d6 Mon Sep 17 00:00:00 2001 From: Fabian Ising Date: Mon, 24 Aug 2026 09:44:08 +0200 Subject: [PATCH] [NVIM] Make update checker portable --- nvim/init.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nvim/init.vim b/nvim/init.vim index 75547a2..d86d424 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -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