54 lines
1.4 KiB
Lua
54 lines
1.4 KiB
Lua
local M = {}
|
|
|
|
---@type VernLanguageConfig
|
|
M.python = {
|
|
root = "Python",
|
|
dirs = {
|
|
src = "src/{project_name}",
|
|
},
|
|
keybinds = {
|
|
["<leader>pr"] = {
|
|
user_command = "Pythonrun",
|
|
desc = "Executes python code",
|
|
action = require("vern-nvim.actions.python").run,
|
|
},
|
|
["<leader>pi"] = {
|
|
user_command = "Pythonpip",
|
|
desc = "Install python packages for environment",
|
|
action = require("vern-nvim.actions.python").pip_install,
|
|
},
|
|
},
|
|
templates = {
|
|
project = {
|
|
primary = {
|
|
path = "{dirs.src}",
|
|
name = "main.py",
|
|
kind = "main",
|
|
kind_path = "vern-nvim.templates.python",
|
|
},
|
|
manifest = {
|
|
path = ".",
|
|
name = "pyproject.toml",
|
|
kind = "pyproject",
|
|
kind_path = "vern-nvim.templates.python",
|
|
},
|
|
pkg_init = {
|
|
path = "{dirs.src}",
|
|
name = "__init__.py",
|
|
kind = "__init__",
|
|
kind_path = "vern-nvim.templates.python",
|
|
},
|
|
},
|
|
file = {
|
|
source = {
|
|
path = "{dirs.src}",
|
|
name = "{name}.py",
|
|
kind = "module",
|
|
kind_path = "vern-nvim.templates.python",
|
|
},
|
|
},
|
|
extras = {},
|
|
},
|
|
}
|
|
return M
|