diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-07-22 17:52:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-22 17:52:41 +0200 |
| commit | 737f8cd6b5a9b987c5fa91aacd477358191e1fb8 (patch) | |
| tree | ba85bacd3efc01e9135211c7d4a69ce645c5d830 /lua/telescope | |
| parent | bb8db6eda25399bef00074978bb13771b92e99e1 (diff) | |
fix: `Telescope` command lsp_definition call (and potentially more) (#2086)
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/builtin/__internal.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/builtin/__internal.lua b/lua/telescope/builtin/__internal.lua index 79e67e4..5012127 100644 --- a/lua/telescope/builtin/__internal.lua +++ b/lua/telescope/builtin/__internal.lua @@ -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, " : ") |
