summaryrefslogtreecommitdiff
path: root/lua/telescope/actions/init.lua
diff options
context:
space:
mode:
authorkylo252 <59826753+kylo252@users.noreply.github.com>2021-12-27 09:48:34 +0100
committerGitHub <noreply@github.com>2021-12-27 09:48:34 +0100
commita1f838d436fefa092159b6b2b96802d222c6145e (patch)
tree4d0e991504925ddcd6c6f551c7f4ed7f1f08ef3c /lua/telescope/actions/init.lua
parent627d89c959292628827239d421357a653144e44f (diff)
chore: remove redundant run_builtin action (#1589)
Diffstat (limited to 'lua/telescope/actions/init.lua')
-rw-r--r--lua/telescope/actions/init.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua
index 11286d5..3e10c63 100644
--- a/lua/telescope/actions/init.lua
+++ b/lua/telescope/actions/init.lua
@@ -336,26 +336,6 @@ actions.paste_register = function(prompt_bufnr)
end
end
-actions.run_builtin = function(prompt_bufnr)
- local selection = action_state.get_selected_entry()
- if selection == nil then
- print "[telescope] Nothing currently selected"
- return
- end
-
- actions._close(prompt_bufnr, true)
- if string.match(selection.text, " : ") then
- -- Call appropriate function from extensions
- local split_string = vim.split(selection.text, " : ")
- local ext = split_string[1]
- local func = split_string[2]
- require("telescope").extensions[ext][func]()
- else
- -- Call appropriate telescope builtin
- require("telescope.builtin")[selection.text]()
- end
-end
-
actions.insert_symbol = function(prompt_bufnr)
local symbol = action_state.get_selected_entry().value[1]
actions.close(prompt_bufnr)