diff --git a/lua/config/ftkeybinds.lua b/lua/config/ftkeybinds.lua index dd1403e..4e7d96a 100644 --- a/lua/config/ftkeybinds.lua +++ b/lua/config/ftkeybinds.lua @@ -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)