diff --git a/lua/ssr.lua b/lua/ssr.lua index 839d9f9..3c309a0 100644 --- a/lua/ssr.lua +++ b/lua/ssr.lua @@ -247,12 +247,12 @@ function Ui:replace_confirm() local confirm_buf = api.nvim_create_buf(false, true) api.nvim_buf_set_lines(confirm_buf, 0, -1, true, { - "• Yes", - "• No", + "[y]es", + "[n]o", "──────────────", - "• All", - "• Quit", - "• Last replace", + "[a]ll", + "[q]uit", + "[l]ast replace", }) local replaced = 0 @@ -279,6 +279,9 @@ function Ui:replace_confirm() confirm_win = api.nvim_open_win(confirm_buf, true, cfg) end + -- prevent accidental attempt to make a selection with + keymap.set("n", "", "", { buffer = confirm_buf }) + local function map(key, func) keymap.set("n", key, function() func()