From afa89ea1f52d280e5edce3eba54c4493a4a411ec Mon Sep 17 00:00:00 2001 From: Fabian David Schmidt Date: Sat, 3 Jul 2021 10:40:09 +0200 Subject: [PATCH] fix: clean up docs --- lua/telescope/actions/utils.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/telescope/actions/utils.lua b/lua/telescope/actions/utils.lua index a9c08d83d3..70acc3111b 100644 --- a/lua/telescope/actions/utils.lua +++ b/lua/telescope/actions/utils.lua @@ -20,7 +20,7 @@ local utils = {} --- Usage: --- local action_state = require "telescope.actions.state" --- local action_utils = require "telescope.actions.utils" ---- function value_by_row() +--- function entry_value_by_row() --- local prompt_bufnr = vim.api.nvim_get_current_buf() --- local current_picker = action_state.get_current_picker(prompt_bufnr) --- local results = {} @@ -55,12 +55,12 @@ end --- Usage: --- local action_state = require "telescope.actions.state" --- local action_utils = require "telescope.actions.utils" ---- function value_by_row() +--- function selection_by_index() --- local prompt_bufnr = vim.api.nvim_get_current_buf() --- local current_picker = action_state.get_current_picker(prompt_bufnr) --- local results = {} ---- action_utils.map_entries(prompt_bufnr, function(entry, index, row) ---- results[row] = entry.value +--- action_utils.map_selections(prompt_bufnr, function(entry, index) +--- results[index] = entry.value --- end) --- return results --- end