feat: improve compiledoc

This commit is contained in:
Max Hohlfeld 2023-07-26 13:01:21 +02:00
parent d7a183d95b
commit 736ad64904
2 changed files with 5 additions and 3 deletions

View File

@ -353,8 +353,8 @@ require('lir').setup {
['h'] = actions.up,
['q'] = actions.quit,
['K'] = actions.mkdir,
['N'] = actions.newfile,
['nd'] = actions.mkdir,
['nf'] = actions.newfile,
['R'] = actions.rename,
['@'] = actions.cd,
['Y'] = actions.yank_path,

View File

@ -4,7 +4,9 @@ local pdf_viewer_pid = 0
local compile = function(file)
return vim.fn.jobstart({ "compiledoc", file }, {
on_exit = function() print("Finished compiling.") end
on_exit = function(_, exit_code) if exit_code == 0 then print("Finished compiling.") end end,
on_stderr = function(_, err, _) print(table.concat(err, "\n")) end,
stderr_buffered = true
})
end