diff options
Diffstat (limited to 'lua/telescope/actions/utils.lua')
| -rw-r--r-- | lua/telescope/actions/utils.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/telescope/actions/utils.lua b/lua/telescope/actions/utils.lua index 73045e7..f2abfe1 100644 --- a/lua/telescope/actions/utils.lua +++ b/lua/telescope/actions/utils.lua @@ -6,7 +6,7 @@ --- Generally used from within other |telescope.actions| ---@brief ]] -local action_state = require('telescope.actions.state') +local action_state = require "telescope.actions.state" local utils = {} @@ -33,12 +33,12 @@ local utils = {} ---@param prompt_bufnr number: The prompt bufnr ---@param f function: Function to map onto entries of picker that takes (entry, index, row) as viable arguments function utils.map_entries(prompt_bufnr, f) - vim.validate{ - f = {f, "function"} + vim.validate { + f = { f, "function" }, } local current_picker = action_state.get_current_picker(prompt_bufnr) local index = 1 - -- indices are 1-indexed, rows are 0-indexed + -- indices are 1-indexed, rows are 0-indexed for entry in current_picker.manager:iter() do local row = current_picker:get_row(index) f(entry, index, row) @@ -69,8 +69,8 @@ end ---@param prompt_bufnr number: The prompt bufnr ---@param f function: Function to map onto selection of picker that takes (selection) as a viable argument function utils.map_selections(prompt_bufnr, f) - vim.validate{ - f = {f, "function"} + vim.validate { + f = { f, "function" }, } local current_picker = action_state.get_current_picker(prompt_bufnr) for _, selection in ipairs(current_picker:get_multi_selection()) do |
