REFACTOR: Cleaning up project and removing more deprecated code

This commit is contained in:
2026-10-16 10:38:06 -04:00
parent 98bd619cfa
commit 06eb74e13f
11 changed files with 142 additions and 332 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ local config = require("vern.configs.python")
return function(bufnr, user_opts)
local opts = vim.tbl_deep_extend("force", {}, config, user_opts or {})
vim.api.nvim_buf_create_user_command(bufnr, "Pythonrun", function()
if actions.run then
if type(actions.run) == "function" then
actions.run(opts)
end
end, { desc = "Run python project" })
@@ -15,7 +15,7 @@ return function(bufnr, user_opts)
end
end, { nargs = "*", desc = "Install python packages" })
for key, def in pairs(opts.keybinds or {}) do
for key, def in pairs(opts.python.keybinds or {}) do
if type(def.action) == "function" then
vim.keymap.set("n", key, function()
def.action(opts)