biber for tex
This commit is contained in:
@@ -105,6 +105,17 @@ local function tex()
|
||||
vim.notify(pdflatex_result.stderr, vim.log.levels.ERROR);
|
||||
end
|
||||
|
||||
local function biber()
|
||||
local biber_process = vim.system({
|
||||
"biber",
|
||||
vim.fn.expand("%:p:r") .. ".bcf"
|
||||
})
|
||||
local biber_result = biber_process:wait()
|
||||
|
||||
vim.notify(biber_result.stdout, vim.log.levels.INFO)
|
||||
vim.notify(biber_result.stderr, vim.log.levels.ERROR)
|
||||
end
|
||||
|
||||
local default = {
|
||||
__index = function()
|
||||
return function() end
|
||||
@@ -121,6 +132,7 @@ setmetatable(fttable, default)
|
||||
local fttable2 = {
|
||||
["markdown"] = function() markdown(vim.fn.input("enter additional options")) end,
|
||||
["arduino"] = function() arduino(vim.fn.input("enter preprocessor defines")) end,
|
||||
["tex"] = function () biber() end,
|
||||
}
|
||||
setmetatable(fttable2, fttable)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user