fix: Telescope command lsp_definition call (and potentially more) (#2086)

(cherry picked from commit 737f8cd6b5)
This commit is contained in:
Simon Hauser
2022-07-22 18:22:37 +02:00
parent 2642968388
commit 01ad16522c
+2 -1
View File
@@ -83,7 +83,7 @@ internal.builtin = function(opts)
previewer = previewers.builtin.new(opts),
sorter = conf.generic_sorter(opts),
attach_mappings = function(_)
actions.select_default:replace(function(_)
actions.select_default:replace(function(prompt_bufnr)
local selection = action_state.get_selected_entry()
if not selection then
utils.__warn_no_selection "builtin.builtin"
@@ -98,6 +98,7 @@ internal.builtin = function(opts)
picker_opts = opts
end
actions.close(prompt_bufnr)
if string.match(selection.text, " : ") then
-- Call appropriate function from extensions
local split_string = vim.split(selection.text, " : ")