CHORE: Fixed bug #4 by looping dirs and creating directories before

other loops in creation.
LANG: Added CPP and bugfixed c to use c code and not python
This commit is contained in:
2026-10-23 08:25:21 -04:00
parent b6d46a0cef
commit 1c4a61ce7f
10 changed files with 382 additions and 33 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
local actions = require("vern.actions.python")
local config = require("vern.configs.python")
local actions = require("vern.actions.c")
local config = require("vern.configs.c")
---@param bufnr integer Buffer to activate on : defaults to 0
---@param user_opts? VernPythonConfig
---@param user_opts? VernCConfig
return function(bufnr, user_opts)
---@type VernPythonConfig
---@type VernCConfig
local opts = vim.tbl_deep_extend("force", {}, config, user_opts or {})
vim.api.nvim_buf_create_user_command(bufnr, "CRun", function()
if type(actions.run) == "function" then
@@ -12,7 +12,7 @@ return function(bufnr, user_opts)
end
end, { desc = "Run c project" })
for key, def in pairs(opts.python.keybinds or {}) do
for key, def in pairs(opts.c.keybinds or {}) do
if type(def.action) == "function" then
vim.keymap.set("n", key, function()
def.action(opts)