Files
monovim/lua/core/update.lua
2026-04-08 00:39:08 +02:00

19 lines
487 B
Lua

-- ~/.config/nvim/lua/monovim/updater.lua
local M = {}
M.update = function()
print("MonoVim Core wird aktualisiert...")
local config_path = vim.fn.stdpath("config")
local handle = io.popen("cd " .. config_path .. " && git pull 2>&1")
local result = handle:read("*a")
handle:close()
if result:find("Already up to date") then
print("MonoVim ist bereits aktuell.")
else
print("Update erfolgreich! Bitte neu starten.")
end
end
return M