From 844052931979828d76b7a34f92217b30bbc27f51 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Sun, 9 Aug 2026 19:01:20 +0200 Subject: Exit input with escape instead of :q --- lua/aotrix/plugins/build.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/aotrix/plugins') diff --git a/lua/aotrix/plugins/build.lua b/lua/aotrix/plugins/build.lua index 0bcf713..c940993 100644 --- a/lua/aotrix/plugins/build.lua +++ b/lua/aotrix/plugins/build.lua @@ -124,7 +124,7 @@ return { local Input = require("nui.input") local input = Input({ position = "50%", - size = {width = 20}, + size = {width = 120}, border = { style = "single", text = {top = "[Howdy?]", top_align = "center"} @@ -158,8 +158,8 @@ return { -- mount/open the component input:mount() - -- unmount component when cursor leaves buffer - input:on(event.BufLeave, function() input:unmount() end) + input:map("n", "", function() input:unmount() end, + {noremap = true}) end -- cgit v1.2.3