summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-08-09 19:01:20 +0200
committerAotrix <[email protected]>2026-08-09 19:01:20 +0200
commit844052931979828d76b7a34f92217b30bbc27f51 (patch)
treefd8fbd2de313970735329113c5a41eb27ada8238
parente363081c8a5accaadb8ea2343d1c48d612f9ab5e (diff)
Exit input with escape instead of :q
-rw-r--r--lua/aotrix/plugins/build.lua6
1 files changed, 3 insertions, 3 deletions
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", "<Esc>", function() input:unmount() end,
+ {noremap = true})
end