feat: improve compiledoc
This commit is contained in:
parent
d7a183d95b
commit
736ad64904
@ -353,8 +353,8 @@ require('lir').setup {
|
|||||||
['h'] = actions.up,
|
['h'] = actions.up,
|
||||||
['q'] = actions.quit,
|
['q'] = actions.quit,
|
||||||
|
|
||||||
['K'] = actions.mkdir,
|
['nd'] = actions.mkdir,
|
||||||
['N'] = actions.newfile,
|
['nf'] = actions.newfile,
|
||||||
['R'] = actions.rename,
|
['R'] = actions.rename,
|
||||||
['@'] = actions.cd,
|
['@'] = actions.cd,
|
||||||
['Y'] = actions.yank_path,
|
['Y'] = actions.yank_path,
|
||||||
|
@ -4,7 +4,9 @@ local pdf_viewer_pid = 0
|
|||||||
|
|
||||||
local compile = function(file)
|
local compile = function(file)
|
||||||
return vim.fn.jobstart({ "compiledoc", 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
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user