From 0f9715298eb52adc27bedc3bed0b1cf1a311389c Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Wed, 18 Feb 2026 14:02:13 -0500 Subject: [PATCH] fix(ci): remove deprecated setups --- lua/cp/utils.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/cp/utils.lua b/lua/cp/utils.lua index 0031216..39e2876 100644 --- a/lua/cp/utils.lua +++ b/lua/cp/utils.lua @@ -82,18 +82,24 @@ function M.get_plugin_path() return vim.fn.fnamemodify(plugin_path, ':h:h:h') end +---@return boolean function M.is_nix_build() return _nix_python ~= nil end +---@return string|nil function M.get_nix_python() return _nix_python end +---@return boolean function M.is_nix_discovered() return _nix_discovered end +---@param module string +---@param plugin_path string +---@return string[] function M.get_python_cmd(module, plugin_path) if _nix_python then return { _nix_python, '-m', 'scrapers.' .. module } @@ -103,6 +109,7 @@ end local python_env_setup = false +---@return boolean local function discover_nix_python() local cache_dir = vim.fn.stdpath('cache') .. '/cp-nvim' local cache_file = cache_dir .. '/nix-python'