Skip to content

Commit 9b7359a

Browse files
committed
docs: clarify auto_accept applies with hotkeys
1 parent ac5bf85 commit 9b7359a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ require("tiny-code-action").setup({
167167
hotkeys = true, -- Enable hotkeys for quick selection of actions
168168
hotkeys_mode = "text_diff_based", -- Modes for generating hotkeys
169169
auto_preview = false, -- Enable or disable automatic preview
170-
auto_accept = false, -- Automatically accept the selected action
170+
auto_accept = false, -- Automatically accept the selected action (with hotkeys)
171171
position = "cursor", -- Position of the picker window
172172
winborder = "single", -- Border style for picker and preview windows
173173
keymaps = {

lua/tiny-code-action/pickers/buffer_utils/window.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ function M.create_main_window(
138138
match_hl_kind
139139
)
140140
local keymaps = config.picker and config.picker.opts and config.picker.opts.keymaps or {}
141-
local auto_accept = config.picker and config.picker.opts and config.picker.opts.auto_accept
142-
or false
143141
local preview_key = keymaps.preview or "K"
144142
local close_keys = keymaps.close or "q"
145143
local select_keys = keymaps.select or "<CR>"

0 commit comments

Comments
 (0)