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
+5 -2
View File
@@ -1,7 +1,10 @@
local actions = require("vern.actions.python")
local config = require("vern.configs.python")
---@param bufnr integer Buffer to activate on : defaults to 0
---@param user_opts? VernPythonConfig
return function(bufnr, user_opts)
---@type VernPythonConfig
local opts = vim.tbl_deep_extend("force", {}, config, user_opts or {})
vim.api.nvim_buf_create_user_command(bufnr, "Pythonrun", function()
if type(actions.run) == "function" then
@@ -9,9 +12,9 @@ return function(bufnr, user_opts)
end
end, { desc = "Run python project" })
vim.api.nvim_buf_create_user_command(bufnr, "Pythonpip", function(cmd_args)
vim.api.nvim_buf_create_user_command(bufnr, "Pythonpip", function()
if actions.pip_install then
actions.pip_install(opts, cmd_args)
actions.pip_install()
end
end, { nargs = "*", desc = "Install python packages" })