REFACTOR: Merged templates into a per language file, deleted init.lua as

it was just a middle man and wasnt needed (in fact it is better without
it)
FT: Changes to python
This commit is contained in:
2026-10-15 23:32:26 -04:00
parent 6593db3829
commit 98bd619cfa
12 changed files with 131 additions and 106 deletions
+11
View File
@@ -1,5 +1,16 @@
local actions = require("vern.actions")
return {
workspace_root = "~/personal/Projects",
keybinds = {
["<leader>pc"] = {
desc = "Creates a new project",
action = actions.create_project,
},
["<leader>pf"] = {
desc = "Creates a new project file",
action = actions.create_file,
},
},
terminal = {
mode = "split",
win = {
+5 -5
View File
@@ -15,27 +15,27 @@ return {
templates = {
project = {
["executable"] = {
template = "vern.templates.python.main",
template = { "vern.templates.python", "main" },
target = "src/%s/main.py",
},
["init"] = {
template = "vern.templates.python.__init__",
template = { "vern.templates.python", "__init__" },
target = "src/%s/__init__.py",
},
["manifest"] = {
template = "vern.templates.python.pyproject",
template = { "vern.templates.python", "pyproject" },
target = "pyproject.toml",
},
},
file = {
["module"] = {
template = "vern.templates.python.module",
template = { "vern.templates.python", "module" },
target = "src/%s.py",
},
},
extras = {
["gitignore"] = {
template = "vern.templates.extras.gitignore",
template = "vern.templates.extras.gitignore", --- needs to call the function in file
target = ".gitignore",
},
},