REFACTOR: Completely changed how project creation is done so I can make

other languages easier and hopefully faster
This commit is contained in:
2026-10-22 00:19:19 -04:00
parent df760783ba
commit 3bb97d833b
9 changed files with 347 additions and 105 deletions
+40
View File
@@ -0,0 +1,40 @@
return {
c = {
root = "C",
-- source_root = "src/{project_name}",
keybinds = {
["<leader>pr"] = {
desc = "Executes c code",
action = require("vern.actions.c").run,
},
["<leader>px"] = {
desc = "Creates header files",
action = require("vern.actions.python").create_header,
},
},
templates = {
project = {
bin = {
target = "src/{project_name}/main.py",
},
pkg = {
target = "src/{project_name}/__init__.py",
},
cfg = {
target = "pyproject.toml",
},
},
file = {
mod = {
target = "src/{project_name}/{name}.py",
},
},
extras = {
gitignore = {
template = "vern.templates.extras.gitignore", --- needs to call the function in file
target = ".gitignore",
},
},
},
},
}