Skip to content

Commit c8cb141

Browse files
committed
fix: close snacks custom picker upon selection
1 parent 642dfd7 commit c8cb141

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/utils/picker.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ local function get_picker_command(command, opts)
126126
actions = {
127127
confirm = function(_, selected)
128128
if selected and selected.value then
129+
vim.cmd('close')
129130
opts.selection_handler(nil, { value = selected.value })
130131
end
131132
end,

0 commit comments

Comments
 (0)