FEAT: adding create_project

This commit is contained in:
2026-10-19 11:59:24 -04:00
parent 06eb74e13f
commit 380f295c93
6 changed files with 225 additions and 46 deletions
+6 -12
View File
@@ -1,37 +1,31 @@
local actions = require("vern.actions.python")
return {
python = {
root = "Python", --- later will concat the project_root to the front
keybinds = {
["<leader>pr"] = {
desc = "Executes python code",
action = actions.run,
action = require("vern.actions.python").run,
},
["<leader>pb"] = {
desc = "Asks for what python package to install",
action = actions.pip_install,
action = require("vern.actions.python").pip_install,
},
},
templates = {
project = {
["executable"] = {
template = { "vern.templates.python", "main" },
target = "src/%s/main.py",
["bin"] = {
target = "src/{project_name}/main.py",
},
["init"] = {
template = { "vern.templates.python", "__init__" },
target = "src/%s/__init__.py",
target = "src/{project_name}/__init__.py",
},
["manifest"] = {
template = { "vern.templates.python", "pyproject" },
target = "pyproject.toml",
},
},
file = {
["module"] = {
template = { "vern.templates.python", "module" },
target = "src/%s.py",
target = "src/{project_name}/{name}.py",
},
},
extras = {