Compare commits
No commits in common. "3f4f48fa8b8f49ac7663175d586f9d9bdabdc337" and "58f3680d3c352446dd632cc5da01e315972eddb9" have entirely different histories.
3f4f48fa8b
...
58f3680d3c
|
@ -1,14 +1,16 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
text = ''
|
text = ''
|
||||||
|
pid = vim.fn.getpid()
|
||||||
|
|
||||||
-- Disable error messages popup.
|
-- Disable error messages popup.
|
||||||
-- Instead print them and write to system journal.
|
-- Instead print them and write to /tmp/NeovimError<PID>.txt
|
||||||
bequiet = function(msg, log_level, opts)
|
bequiet = function(msg, log_level, opts)
|
||||||
print(string.sub(tostring(msg), 1, vim.v.echospace))
|
print(string.sub(tostring(msg), 1, vim.v.echospace))
|
||||||
|
|
||||||
local log = io.popen("systemd-cat -t nvim", "w")
|
local file = io.open("/tmp/NeovimError"..tostring(pid)..".txt", "a")
|
||||||
log:write(tostring(msg))
|
file:write(msg.."\n")
|
||||||
log:close()
|
file:close()
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.notify = bequiet
|
vim.notify = bequiet
|
||||||
|
|
|
@ -66,7 +66,7 @@ in
|
||||||
OnCalendar = "hourly";
|
OnCalendar = "hourly";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
Unit = "autoupdate.service";
|
Unit = "autoupdate.service";
|
||||||
RandomizedDelaySec = 60;
|
# RandomizedDelaySec = 60;
|
||||||
};
|
};
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue