REFACTOR: Cleaning up project and removing more deprecated code
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
local actions = require("vern.actions")
|
||||
return {
|
||||
workspace_root = "~/personal/Projects",
|
||||
keybinds = {
|
||||
["<leader>pc"] = {
|
||||
desc = "Creates a new project",
|
||||
action = actions.create_project,
|
||||
},
|
||||
["<leader>pf"] = {
|
||||
desc = "Creates a new project file",
|
||||
action = actions.create_file,
|
||||
},
|
||||
},
|
||||
terminal = {
|
||||
mode = "split",
|
||||
win = {
|
||||
type = "horizontal",
|
||||
anchor = "bottom",
|
||||
size = "20",
|
||||
},
|
||||
border = {
|
||||
enabled = true,
|
||||
type = "rounded",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
local actions = require("vern.actions")
|
||||
return {
|
||||
workspace_root = "~/personal/Projects",
|
||||
keybinds = {
|
||||
["<leader>pc"] = {
|
||||
desc = "Creates a new project",
|
||||
action = actions.create_project,
|
||||
},
|
||||
["<leader>pf"] = {
|
||||
desc = "Creates a new project file",
|
||||
action = actions.create_file,
|
||||
},
|
||||
},
|
||||
terminal = {
|
||||
mode = {
|
||||
type = "split", --- can be split or float
|
||||
win = {
|
||||
float = {
|
||||
padding = {
|
||||
left = 0,
|
||||
right = 0,
|
||||
top = 0,
|
||||
bottom = 0,
|
||||
},
|
||||
border = {
|
||||
enabled = true,
|
||||
type = vim.o.winborder,
|
||||
},
|
||||
},
|
||||
split = {
|
||||
type = "horizontal", --- can be vertical or horizontal
|
||||
anchor = "bottom", --- can be right or bottom
|
||||
size = "20",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
+34
-32
@@ -1,42 +1,44 @@
|
||||
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",
|
||||
python = {
|
||||
root = "Python", --- later will concat the project_root to the front
|
||||
keybinds = {
|
||||
["<leader>pr"] = {
|
||||
desc = "Executes python code",
|
||||
action = actions.run,
|
||||
},
|
||||
["init"] = {
|
||||
template = { "vern.templates.python", "__init__" },
|
||||
target = "src/%s/__init__.py",
|
||||
},
|
||||
["manifest"] = {
|
||||
template = { "vern.templates.python", "pyproject" },
|
||||
target = "pyproject.toml",
|
||||
["<leader>pb"] = {
|
||||
desc = "Asks for what python package to install",
|
||||
action = actions.pip_install,
|
||||
},
|
||||
},
|
||||
file = {
|
||||
["module"] = {
|
||||
template = { "vern.templates.python", "module" },
|
||||
target = "src/%s.py",
|
||||
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",
|
||||
},
|
||||
},
|
||||
},
|
||||
extras = {
|
||||
["gitignore"] = {
|
||||
template = "vern.templates.extras.gitignore", --- needs to call the function in file
|
||||
target = ".gitignore",
|
||||
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",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user