Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
axkirillov committed Dec 28, 2022
1 parent ecf7515 commit 20fecf6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lua/easypick/actions.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local actions = require "telescope.actions"
local action_state = require "telescope.actions.state"

-- deprecated, use nvim_command
local function run_nvim_command(prompt_bufnr, _)
actions.select_default:replace(function()
actions.close(prompt_bufnr)
Expand All @@ -10,15 +11,6 @@ local function run_nvim_command(prompt_bufnr, _)
return true
end

local function run_easypick(prompt_bufnr, _)
actions.select_default:replace(function()
actions.close(prompt_bufnr)
local selection = action_state.get_selected_entry()
vim.cmd('Easypick ' .. selection[1])
end)
return true
end

local function nvim_command(prefix)
if prefix == nil then
prefix = ''
Expand All @@ -38,6 +30,5 @@ end

return {
run_nvim_command = run_nvim_command,
run_easypick = run_easypick,
nvim_command = nvim_command
}

0 comments on commit 20fecf6

Please sign in to comment.