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