From 4a2df5a9b92519bd8e44c76913595f436c2f52fa Mon Sep 17 00:00:00 2001 From: THEON-1 Date: Wed, 7 Jan 2026 19:23:54 +0100 Subject: [PATCH] biber for tex --- lua/config/ftkeybinds.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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)