REFACTOR: Annotations for autocompletion, reworked how projects are made

and handled, wrote the c file replacing the copied python code.
This commit is contained in:
2026-10-22 04:29:52 -04:00
parent 3bb97d833b
commit 685a711644
13 changed files with 373 additions and 178 deletions
+10 -12
View File
@@ -1,5 +1,6 @@
local M = {}
---@type VernLanguageConfig
M.python = {
root = "Python",
dirs = {
@@ -10,38 +11,35 @@ M.python = {
desc = "Executes python code",
action = require("vern.actions.python").run,
},
["<leader>pb"] = {
["<leader>pi"] = {
desc = "Asks for what python package to install",
action = require("vern.actions.python").pip_install,
},
},
templates = {
project = {
bin = {
primary = {
path = "{dirs.src}",
-- path = "src/{project_name}",
name = "main.py",
kind = "main",
kind_path = "vern.templates.python",
},
pkg = {
path = "{dirs.src}",
-- path = "src/{project_name}",
name = "__init__.py",
kind = "__init__",
kind_path = "vern.templates.python",
},
cfg = {
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}",
-- path = "src/{project_name}",
name = "{name}.py",
kind = "module",
kind_path = "vern.templates.python",