Skip to content

Commit

Permalink
feat: custom action on select (see nvim-telescope#16, nvim-telescope#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwyce committed Feb 19, 2023
1 parent 0826c7a commit d4d944d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/telescope/_extensions/media_files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function M.media_files(opts)
local sourced_file = require('plenary.debug_utils').sourced_filepath()
M.base_directory = vim.fn.fnamemodify(sourced_file, ":h:h:h:h")
opts = opts or {}
opts.attach_mappings= function(prompt_bufnr,map)
opts.attach_mappings= opts.attach_mappings or function(prompt_bufnr,map)
actions.select_default:replace(function()
local entry = action_state.get_selected_entry()
actions.close(prompt_bufnr)
Expand Down

0 comments on commit d4d944d

Please sign in to comment.