From dfe58a4da87c778140545eda93c00723fed039e6 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 6 Apr 2024 11:53:38 -0400 Subject: [PATCH] nvim: compilation has output now --- src/.config/nvim/lua/debugging.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/.config/nvim/lua/debugging.lua b/src/.config/nvim/lua/debugging.lua index 34d2fdc..22f33a4 100644 --- a/src/.config/nvim/lua/debugging.lua +++ b/src/.config/nvim/lua/debugging.lua @@ -138,16 +138,16 @@ end function M.compile(file) file = gf(file) local subdir = M.dbg_dir(file) - vim.fn.execute("make " .. subdir .. "/binary " .. "-f $XDG_CONFIG_HOME/nvim/makefile") + vim.cmd.make(subdir .. "/binary " .. "-f $XDG_CONFIG_HOME/nvim/makefile") end -keymap("dc", M.compile) +keymap("dc", M.compile, { silent = false }) function M.write_input(file) -- store ad hoc test input from clipboard file = gf(file) local inp_file = M.dbg_dir(file) .. "/input" - vim.fn.writefile(vim.fn.getreg("+", 1, 1), inp_file) + print(vim.fn.writefile(vim.fn.getreg("+", 1, 1), inp_file)) end function M.run_input(file)