summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropalmay <[email protected]>2023-02-07 21:23:39 +0200
committeropalmay <[email protected]>2023-04-12 13:56:59 +0300
commit37fb60f755504b78fce6f47c7aac2a9e1a6ce09c (patch)
tree2bd2134285068a5dd613e9a4423e0c44b8778f28
parentf62ab44a4ed2e73ee9b4ff75cf9c627e14ed3d4e (diff)
chore: handle soft deprecation
-rw-r--r--lua/lvim/config/_deprecated.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/lvim/config/_deprecated.lua b/lua/lvim/config/_deprecated.lua
index d4b15f30..6857c8ec 100644
--- a/lua/lvim/config/_deprecated.lua
+++ b/lua/lvim/config/_deprecated.lua
@@ -154,6 +154,23 @@ function M.post_load()
convert_spec_to_lazy(plugin)
end
end
+
+ if lvim.builtin.terminal.execs then
+ deprecate(
+ "lvim.builtin.terminal.execs",
+ "Use `lvim.builtin.terminal.commands` instead. See https://www.lunarvim.org/docs/configuration/keybindings#toggleterm-terminal-mappings"
+ )
+ for _, v in ipairs(lvim.builtin.terminal.execs) do
+ local keybind = {
+ cmd = v[1],
+ keymap = v[2],
+ desc = v[3],
+ direction = v[4],
+ size = v[5],
+ }
+ lvim.builtin.terminal.keybinds[#lvim.builtin.terminal.keybinds + 1] = keybind
+ end
+ end
end
return M