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:
@@ -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 = {
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user