From 98605f84ab1bbe0f0b9d32703d2cc2d9f1799897 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Sun, 12 Oct 2025 09:51:16 -0400 Subject: [PATCH] refactor(nvim): simplify lazy loading configuration --- lua/plugins/astrocore.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lua/plugins/astrocore.lua b/lua/plugins/astrocore.lua index 6d2070b..58fc8e8 100644 --- a/lua/plugins/astrocore.lua +++ b/lua/plugins/astrocore.lua @@ -400,7 +400,7 @@ return { desc = "Find Service files", }, -- AI/Assistant mappings - ["c"] = { terminals.claude_toggle, desc = "Claude Toggle" }, + [""] = { terminals.claude_toggle, desc = "Claude Toggle" }, }, i = { [""] = { "wabd", desc = "Save, close buffer, and return to normal mode" }, @@ -418,6 +418,14 @@ return { desc = "Find buffers", }, -- Exit terminal mode and close window + [""] = { + function() + vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes([[]], true, false, true), "n", false) + vim.cmd "close" + end, + desc = "Exit terminal and close window", + }, + -- Exit terminal mode and close window [""] = { function() vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes([[]], true, false, true), "n", false)