refactor(util)!: `require("lazy.util").open_cmd()` is deprecated. See the docs

This commit is contained in:
Folke Lemaitre 2023-01-06 11:18:48 +01:00
parent 317df42fcf
commit 4f76b431f7
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 5 additions and 0 deletions

View File

@ -142,6 +142,11 @@ function M.float_cmd(cmd, opts)
return float
end
---@deprecated use float_term or float_cmd instead
function M.open_cmd()
M.warn([[`require("lazy.util").open_cmd()` is deprecated. Please use `float_term` instead. Check the docs]])
end
---@return string?
function M.head(file)
local f = io.open(file)