40 lines
1.2 KiB
Lua
40 lines
1.2 KiB
Lua
return {
|
|
python = {
|
|
root = "Python", --- later will concat the project_root to the front
|
|
keybinds = {
|
|
["<leader>pr"] = {
|
|
desc = "Executes python code",
|
|
action = require("vern.actions.python").run,
|
|
},
|
|
["<leader>pb"] = {
|
|
desc = "Asks for what python package to install",
|
|
action = require("vern.actions.python").pip_install,
|
|
},
|
|
},
|
|
templates = {
|
|
project = {
|
|
["bin"] = {
|
|
target = "src/{project_name}/main.py",
|
|
},
|
|
["init"] = {
|
|
target = "src/{project_name}/__init__.py",
|
|
},
|
|
["manifest"] = {
|
|
target = "pyproject.toml",
|
|
},
|
|
},
|
|
file = {
|
|
["module"] = {
|
|
target = "src/{project_name}/{name}.py",
|
|
},
|
|
},
|
|
extras = {
|
|
["gitignore"] = {
|
|
template = "vern.templates.extras.gitignore", --- needs to call the function in file
|
|
target = ".gitignore",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|