Files
vern-nvim/lua/vern/configs/python.lua
T
DarthMooMancer 685a711644 REFACTOR: Annotations for autocompletion, reworked how projects are made
and handled, wrote the c file replacing the copied python code.
2026-10-22 04:29:52 -04:00

52 lines
1.3 KiB
Lua

local M = {}
---@type VernLanguageConfig
M.python = {
root = "Python",
dirs = {
src = "src/{project_name}",
},
keybinds = {
["<leader>pr"] = {
desc = "Executes python code",
action = require("vern.actions.python").run,
},
["<leader>pi"] = {
desc = "Asks for what python package to install",
action = require("vern.actions.python").pip_install,
},
},
templates = {
project = {
primary = {
path = "{dirs.src}",
name = "main.py",
kind = "main",
kind_path = "vern.templates.python",
},
manifest = {
path = ".",
name = "pyproject.toml",
kind = "pyproject",
kind_path = "vern.templates.python",
},
pkg_init = {
path = "{dirs.src}",
name = "__init__.py",
kind = "__init__",
kind_path = "vern.templates.python",
},
},
file = {
mod = {
path = "{dirs.src}",
name = "{name}.py",
kind = "module",
kind_path = "vern.templates.python",
},
},
extras = {},
},
}
return M