Skip to content

Commit

Permalink
refactor(util)!: require("lazy.util").open_cmd() is deprecated. See…
Browse files Browse the repository at this point in the history
… the docs
  • Loading branch information
folke committed Jan 6, 2023
1 parent 317df42 commit 4f76b43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/lazy/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f76b43

Please sign in to comment.