diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-07-23 17:42:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-23 11:42:37 -0400 |
| commit | 79644ab67731c7ba956c354bf0545282f34e10cc (patch) | |
| tree | e65dbf73b3442ab1aa9fc59fc56a35b4c9edf1e0 /lua/telescope/actions/utils.lua | |
| parent | 664690029fdb302bee8d3f27a458383e8477add7 (diff) | |
chore: use stylua for formatting (#1040)
* chore: stylua job and config
* reformat with stylua
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 |
