41 lines
1.2 KiB
Lua
41 lines
1.2 KiB
Lua
return {
|
|
python = {
|
|
root = "Python",
|
|
source_root = "src/{project_name}",
|
|
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",
|
|
},
|
|
["pkg"] = {
|
|
target = "src/{project_name}/__init__.py",
|
|
},
|
|
["spec"] = {
|
|
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",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|