disable update checker by default
This commit is contained in:
@ -1,14 +1,14 @@
|
|||||||
-- janky popen madness to use curl without luarocks
|
-- 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 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")
|
-- local remoteResult = remoteCommit:read("*a")
|
||||||
remoteCommit:close()
|
-- remoteCommit:close()
|
||||||
|
--
|
||||||
local localCommit = io.popen([[cd $XDG_CONFIG_HOME/nvim; git log | head -1 | cut -d " " -f 2]])
|
-- local localCommit = io.popen([[cd $XDG_CONFIG_HOME/nvim; git log | head -1 | cut -d " " -f 2]])
|
||||||
local localResult = localCommit:read("*a")
|
-- local localResult = localCommit:read("*a")
|
||||||
localCommit:close()
|
-- localCommit:close()
|
||||||
|
--
|
||||||
if remoteResult ~= localResult then
|
-- if remoteResult ~= localResult then
|
||||||
vim.notify("Out of date with remote repo :(", vim.log.levels.WARN, {title = "Nvim Config"})
|
-- vim.notify("Out of date with remote repo :(", vim.log.levels.WARN, {title = "Nvim Config"})
|
||||||
else
|
-- else
|
||||||
vim.notify("Up to date with remote repo :)", vim.log.levels.INFO, {title = "Nvim Config"})
|
-- vim.notify("Up to date with remote repo :)", vim.log.levels.INFO, {title = "Nvim Config"})
|
||||||
end
|
-- end
|
||||||
|
Reference in New Issue
Block a user