From 4f76b431f73c912a7021bc17384533fbad96fba7 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 6 Jan 2023 11:18:48 +0100 Subject: [PATCH] refactor(util)!: `require("lazy.util").open_cmd()` is deprecated. See the docs --- lua/lazy/util.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/lazy/util.lua b/lua/lazy/util.lua index edd6610..8e8a638 100644 --- a/lua/lazy/util.lua +++ b/lua/lazy/util.lua @@ -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)