Update init.lua

This commit is contained in:
DarthMooMancer
2025-03-04 14:24:23 -05:00
parent 1d1b593f2c
commit 5061d0e4f9
+1 -1
View File
@@ -69,7 +69,7 @@ local function open_float_terminal(cmd)
-- Keymaps: ESC to exit Terminal mode, <C-q> to close the floating terminal -- Keymaps: ESC to exit Terminal mode, <C-q> to close the floating terminal
-- vim.api.nvim_buf_set_keymap(buf, "t", "<Esc>", "<C-\\><C-n>", { noremap = true, silent = true }) -- vim.api.nvim_buf_set_keymap(buf, "t", "<Esc>", "<C-\\><C-n>", { noremap = true, silent = true })
-- vim.api.nvim_buf_set_keymap(buf, "t", "<Esc>", "<C-\\><C-n>:q<CR>", { noremap = true, silent = true }) -- vim.api.nvim_buf_set_keymap(buf, "t", "<Esc>", "<C-\\><C-n>:q<CR>", { noremap = true, silent = true })
local close_key = "<Esc>" -- Default local close_key = nil -- Default
for key, action in pairs(M.config.keybinds) do for key, action in pairs(M.config.keybinds) do
if action == "CloseTerminal" then if action == "CloseTerminal" then
close_key = key close_key = key