Files
vern-nvim/lua/vern/configs/python.lua
T
DarthMooMancer 98bd619cfa 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
2026-10-15 23:32:26 -04:00

44 lines
1.3 KiB
Lua

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