From 37fb60f755504b78fce6f47c7aac2a9e1a6ce09c Mon Sep 17 00:00:00 2001 From: opalmay Date: Tue, 7 Feb 2023 21:23:39 +0200 Subject: chore: handle soft deprecation --- lua/lvim/config/_deprecated.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lua/lvim/config/_deprecated.lua') 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 -- cgit v1.2.3