fix(ci): remove deprecated setups
This commit is contained in:
parent
2148d9bd07
commit
0f9715298e
1 changed files with 7 additions and 0 deletions
|
|
@ -82,18 +82,24 @@ function M.get_plugin_path()
|
||||||
return vim.fn.fnamemodify(plugin_path, ':h:h:h')
|
return vim.fn.fnamemodify(plugin_path, ':h:h:h')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@return boolean
|
||||||
function M.is_nix_build()
|
function M.is_nix_build()
|
||||||
return _nix_python ~= nil
|
return _nix_python ~= nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@return string|nil
|
||||||
function M.get_nix_python()
|
function M.get_nix_python()
|
||||||
return _nix_python
|
return _nix_python
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@return boolean
|
||||||
function M.is_nix_discovered()
|
function M.is_nix_discovered()
|
||||||
return _nix_discovered
|
return _nix_discovered
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@param module string
|
||||||
|
---@param plugin_path string
|
||||||
|
---@return string[]
|
||||||
function M.get_python_cmd(module, plugin_path)
|
function M.get_python_cmd(module, plugin_path)
|
||||||
if _nix_python then
|
if _nix_python then
|
||||||
return { _nix_python, '-m', 'scrapers.' .. module }
|
return { _nix_python, '-m', 'scrapers.' .. module }
|
||||||
|
|
@ -103,6 +109,7 @@ end
|
||||||
|
|
||||||
local python_env_setup = false
|
local python_env_setup = false
|
||||||
|
|
||||||
|
---@return boolean
|
||||||
local function discover_nix_python()
|
local function discover_nix_python()
|
||||||
local cache_dir = vim.fn.stdpath('cache') .. '/cp-nvim'
|
local cache_dir = vim.fn.stdpath('cache') .. '/cp-nvim'
|
||||||
local cache_file = cache_dir .. '/nix-python'
|
local cache_file = cache_dir .. '/nix-python'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue