From 7cf8bc3a4c22fe4c8b14cd5ffcefee1cbced9f22 Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 23 May 2023 14:39:20 -0400 Subject: check if we are up to date with remote repo --- lua/mngr/menu.lua | 3 +++ lua/mngr/updates.lua | 14 ++++++++++++++ 2 files changed, 17 insertions(+) (limited to 'lua/mngr') diff --git a/lua/mngr/menu.lua b/lua/mngr/menu.lua index 958c466..9300de2 100644 --- a/lua/mngr/menu.lua +++ b/lua/mngr/menu.lua @@ -35,6 +35,9 @@ local function configmenu() if package.loaded['mason'] then require('mason.api.command').MasonUpdate() end + if choice == 'update config' then + require('mngr.updates') + end if choice == 'show keybinds' then require('telescope.builtin').keymaps() end diff --git a/lua/mngr/updates.lua b/lua/mngr/updates.lua index e69de29..653af67 100644 --- a/lua/mngr/updates.lua +++ b/lua/mngr/updates.lua @@ -0,0 +1,14 @@ +-- janky popen madness to use curl without luarocks +local remoteCommit = io.popen([[curl -s https://git.squi.bid/nvim/commit/ | grep -o "