refactor(configs): completely overhauled how projects and files are handled

1. Run is now handled by the global run function instead
of language specific runs
2. Fixed some notifications, making them more unified and informational
3. Cleaned up c/c++ code that was broken from create_file changes
4. Create_file has new architecture. It still takes in a function but
   can be disabled to be skipped (this will most likely change later as
   its unoptimized)
5. Added rust support
6. Keybinds are now only setup for language specific
7. Project creation has error and nil checking allowing for skipping and
   more customizable templates and setups for future languages
This commit is contained in:
DarthMooMancer committed 2026-10-30 13:24:38 -04:00
1 parent 72951f7327
commit 9a6eb90efc
22 files changed
+562 -407

No files matched your search

+8 -11
View File
@@ -2,20 +2,17 @@ local M = {}
local utils = require("vern-nvim.utils")
M.create_project = function() end
M.create_file = function() end
---@param opts VernCPPConfig Takes a table for the runtime
---@param opts VernLuaConfig Takes a table for the runtime
function M.run(opts)
opts = opts or {}
local root = utils.proj_root() or "."
local pname = vim.fs.basename(root)
local full_path =
vim.fs.joinpath(utils.proj_root(), "lua", utils.proj_name())
local full_path = vim.fs.joinpath(root, "lua", pname)
print(full_path .. "/init.lua")
utils.term({ "lua " .. full_path .. "/init.lua" }, opts.terminal or {}, false)
utils.term(
{ "lua " .. full_path .. "/init.lua" },
opts.terminal or {},
false
)
end
return M