diff options
author | Squibid <me@zacharyscheiman.com> | 2023-06-26 11:42:06 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-06-26 11:42:06 -0400 |
commit | b71e78657f74c0ecaa478e27edbcd5d07cc6c8e0 (patch) | |
tree | d39442a040987bffd94aacf543c0b5662d5293da /lua/mngr | |
parent | 0ba2ba3a70c8635716ef420289c3b93984aae9a5 (diff) | |
download | nvim-b71e78657f74c0ecaa478e27edbcd5d07cc6c8e0.tar.gz nvim-b71e78657f74c0ecaa478e27edbcd5d07cc6c8e0.tar.bz2 nvim-b71e78657f74c0ecaa478e27edbcd5d07cc6c8e0.zip |
disable update checker by default
Diffstat (limited to 'lua/mngr')
-rw-r--r-- | lua/mngr/updates.lua | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lua/mngr/updates.lua b/lua/mngr/updates.lua index 653af67..ed0d622 100644 --- a/lua/mngr/updates.lua +++ b/lua/mngr/updates.lua @@ -1,14 +1,14 @@ -- janky popen madness to use curl without luarocks -local remoteCommit = io.popen([[curl -s https://git.squi.bid/nvim/commit/ | grep -o "<a href='/nvim/commit/?id=.*>" | cut -d "'" -f 2 | cut -d "=" -f 2 | head -1]]) -local remoteResult = remoteCommit:read("*a") -remoteCommit:close() - -local localCommit = io.popen([[cd $XDG_CONFIG_HOME/nvim; git log | head -1 | cut -d " " -f 2]]) -local localResult = localCommit:read("*a") -localCommit:close() - -if remoteResult ~= localResult then - vim.notify("Out of date with remote repo :(", vim.log.levels.WARN, {title = "Nvim Config"}) -else - vim.notify("Up to date with remote repo :)", vim.log.levels.INFO, {title = "Nvim Config"}) -end +-- local remoteCommit = io.popen([[curl -s https://git.squi.bid/nvim/commit/ | grep -o "<a href='/nvim/commit/?id=.*>" | cut -d "'" -f 2 | cut -d "=" -f 2 | head -1]]) +-- local remoteResult = remoteCommit:read("*a") +-- remoteCommit:close() +-- +-- local localCommit = io.popen([[cd $XDG_CONFIG_HOME/nvim; git log | head -1 | cut -d " " -f 2]]) +-- local localResult = localCommit:read("*a") +-- localCommit:close() +-- +-- if remoteResult ~= localResult then +-- vim.notify("Out of date with remote repo :(", vim.log.levels.WARN, {title = "Nvim Config"}) +-- else +-- vim.notify("Up to date with remote repo :)", vim.log.levels.INFO, {title = "Nvim Config"}) +-- end |