Files
monovim/lua/core/update.lua
2026-04-08 03:59:27 +02:00

19 lines
476 B
Lua

-- ~/.config/nvim/lua/monovim/updater.lua
local M = {}
M.update = function()
print("Updating MonoVim Core...")
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 is already up to date.")
else
print("Update successful! Please restart.")
end
end
return M