Compare commits
No commits in common. "58f3680d3c352446dd632cc5da01e315972eddb9" and "e3172d4163460f53c8f410c9cbd383ac88e87b44" have entirely different histories.
58f3680d3c
...
e3172d4163
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
-- Display invisible characters.
|
-- Display invisible characters.
|
||||||
-- vim.cmd("set list listchars=tab:>\\ ,trail:-,eol:,lead:.")
|
-- vim.cmd("set list listchars=tab:>\\ ,trail:-,eol:,lead:.")
|
||||||
vim.cmd("set list listchars=tab:>\\ ,trail:-,lead:·")
|
vim.cmd("set list listchars=tab:>\\ ,trail:-,lead:.")
|
||||||
|
|
||||||
-- Relative line numbers.
|
-- Relative line numbers.
|
||||||
vim.wo.relativenumber = true
|
vim.wo.relativenumber = true
|
||||||
|
|
|
@ -5,15 +5,12 @@
|
||||||
|
|
||||||
-- Disable error messages popup.
|
-- Disable error messages popup.
|
||||||
-- Instead print them and write to /tmp/NeovimError<PID>.txt
|
-- Instead print them and write to /tmp/NeovimError<PID>.txt
|
||||||
bequiet = function(msg, log_level, opts)
|
vim.notify = function(msg, log_level, opts)
|
||||||
print(string.sub(tostring(msg), 1, vim.v.echospace))
|
print(string.sub(msg, 1, vim.v.echospace))
|
||||||
|
|
||||||
local file = io.open("/tmp/NeovimError"..tostring(pid)..".txt", "a")
|
local file = io.open("/tmp/NeovimError"..tostring(pid)..".txt", "a")
|
||||||
file:write(msg.."\n")
|
file:write(msg.."\n")
|
||||||
file:close()
|
file:close()
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.notify = bequiet
|
|
||||||
vim.api.nvim_err_writeln = bequiet
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue