From 8c344b8bdc0a56d50e72139a75ffdbbd51fdfc30 Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Mon, 7 Apr 2025 09:27:53 -0400 Subject: [PATCH] Added build_attributes to c.lua and made changed to how it builds --- lua/Polydev/c.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/Polydev/c.lua b/lua/Polydev/c.lua index c31e916..3b2cf6d 100644 --- a/lua/Polydev/c.lua +++ b/lua/Polydev/c.lua @@ -23,7 +23,8 @@ M.config = { number = true, relativenumber = true, scroll = true, - } + }, + build_attributes = "" } function M.setup(opts) @@ -172,7 +173,7 @@ end function M.build() local root = M.get_project_root() if not root then return print("Error: Project root not found.") end - local cmd = "cd " .. "../build && cmake .. && make" + local cmd = "cd " .. "../build && cmake " .. M.config.build_attributes .. " && make" local term_buf = M.open_float_terminal(cmd) vim.api.nvim_buf_set_option(term_buf, "modifiable", true) local output = vim.fn.system(cmd)