feat(project): ctrl-t opens project in tab
This commit is contained in:
@ -5,6 +5,7 @@ local pick = function()
|
|||||||
local fzf_lua = require("fzf-lua")
|
local fzf_lua = require("fzf-lua")
|
||||||
local history = require("project_nvim.utils.history")
|
local history = require("project_nvim.utils.history")
|
||||||
local results = history.get_recent_projects()
|
local results = history.get_recent_projects()
|
||||||
|
local actions = require("fzf-lua.actions")
|
||||||
fzf_lua.fzf_exec(results, {
|
fzf_lua.fzf_exec(results, {
|
||||||
actions = {
|
actions = {
|
||||||
["default"] = {
|
["default"] = {
|
||||||
@ -12,6 +13,7 @@ local pick = function()
|
|||||||
fzf_lua.files({ cwd = selected[1] })
|
fzf_lua.files({ cwd = selected[1] })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
["ctrl-t"] = actions.file_tabedit,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user