From 92b3bd1af325f43a65d89012186ece45e0a943f3 Mon Sep 17 00:00:00 2001 From: caiowakamatsu Date: Thu, 30 Oct 2025 02:00:10 -0300 Subject: [PATCH] fix make lua to accept multiple targets --- nvim/lua/config/make.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/nvim/lua/config/make.lua b/nvim/lua/config/make.lua index 661bc3c..4be4ed0 100644 --- a/nvim/lua/config/make.lua +++ b/nvim/lua/config/make.lua @@ -3,13 +3,14 @@ local M = {} local float_term = require("util.float").float_terminal vim.api.nvim_create_user_command("Make", function(opts) - local t = opts.args - if t == "" then print("Usage: :Make "); return end + if opts.args == "" then + print("Usage: :Make ") + return + end + local args = vim.split(opts.args, "%s+") float_term( - { "make", t}, + vim.list_extend({ "make" }, args), { height_ratio = 0.8, width_ratio = 0.8, border = "single" } ) -end, { nargs = 1 }) - -return M +end, { nargs = "*" })