diff options
| author | Ryan Koval <ryan@ryankoval.com> | 2022-09-04 14:47:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-04 21:47:25 +0200 |
| commit | 2b5060362bc6821faacc346a3069812446a14d68 (patch) | |
| tree | 0745e589256a2b2d94085f6118112770b78a56bc /lua/telescope/actions/set.lua | |
| parent | 19047b6b3c804ac65350fea7e432e1e46ec9770b (diff) | |
feat: added support for tabdrop (#2143)
Diffstat (limited to 'lua/telescope/actions/set.lua')
| -rw-r--r-- | lua/telescope/actions/set.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/actions/set.lua b/lua/telescope/actions/set.lua index 6177c9b..7861bb2 100644 --- a/lua/telescope/actions/set.lua +++ b/lua/telescope/actions/set.lua @@ -68,6 +68,7 @@ local edit_buffer do local map = { drop = "drop", + ["tab drop"] = "tab drop", edit = "buffer", new = "sbuffer", vnew = "vert sbuffer", @@ -79,7 +80,7 @@ do if command == nil then error "There was no associated buffer command" end - if command ~= "drop" then + if command ~= "drop" and command ~= "tab drop" then vim.cmd(string.format("%s %d", command, bufnr)) else vim.cmd(string.format("%s %s", command, vim.api.nvim_buf_get_name(bufnr))) |
