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:
+10
-12
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user