From 79644ab67731c7ba956c354bf0545282f34e10cc Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Fri, 23 Jul 2021 17:42:37 +0200 Subject: chore: use stylua for formatting (#1040) * chore: stylua job and config * reformat with stylua --- lua/telescope/actions/utils.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lua/telescope/actions/utils.lua') 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 -- cgit v1.2.3