Compare commits
2 commits
e3172d4163
...
58f3680d3c
Author | SHA1 | Date | |
---|---|---|---|
Dmitry Voronin | 58f3680d3c | ||
Dmitry Voronin | 91563c4b08 |
|
@ -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,12 +5,15 @@
|
||||||
|
|
||||||
-- 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
|
||||||
vim.notify = function(msg, log_level, opts)
|
bequiet = function(msg, log_level, opts)
|
||||||
print(string.sub(msg, 1, vim.v.echospace))
|
print(string.sub(tostring(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