CHORE: Bug fixed c and cpp files and fixed their templates. Bug #3 is
also done
This commit is contained in:
@@ -19,9 +19,11 @@ function M.create_project(opts)
|
||||
---@type VernCConfig
|
||||
local cfg = vim.tbl_deep_extend("force", {}, configs, configs, opts or {})
|
||||
local root = join(vim.fn.expand(cfg.workspace_root), cfg.c.root, pname)
|
||||
local build_cmd = "cd " .. root .. " && cmake -S . -B build"
|
||||
local bin = action_utils.create(cfg.c, pname, root)
|
||||
|
||||
local build_cmd = "cd " .. root .. " && cmake -S . -B build"
|
||||
local _ = vim.system({ "sh", "-c", build_cmd }):wait()
|
||||
|
||||
utils.init_git(root, "c")
|
||||
|
||||
vim.cmd.edit(vim.fn.fnameescape(bin))
|
||||
|
||||
Reference in New Issue
Block a user