Skip to content

Commit

Permalink
fix: Telescope command lsp_definition call (and potentially more) (#…
Browse files Browse the repository at this point in the history
…2086)

(cherry picked from commit 737f8cd)
  • Loading branch information
Conni2461 committed Jul 22, 2022
1 parent 2642968 commit 01ad165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/telescope/builtin/__internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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, " : ")
Expand Down

0 comments on commit 01ad165

Please sign in to comment.