dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: f5d8861656374d7446d9bd0e3269b0e84fd438ea
Parent: 4d98a0151fc05fa78240d3c7f0639d4d9f717537
Author: Randy Palamar
Date:   Tue,  2 Apr 2024 09:40:03 -0600

vis: add python "builder" (runs currently open py file)

Diffstat:
M.config/vis/build.lua | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/.config/vis/build.lua b/.config/vis/build.lua @@ -55,9 +55,23 @@ local function build_files(win) return true, info end + local build_python = function (f) + local _, ostr, estr = vis:pipe('python ' .. f.name) + if estr then + util.message_clear(vis) + vis:message(estr) + return false + end + if ostr then + util.message_clear(vis) + vis:message(ostr) + end + return true + end local lang = {} lang["latex"] = build_tex + lang["python"] = build_python local builder = lang[win.syntax] if builder == nil then