mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 09:18:51 +02:00
feat(project): ctrl-t opens project in tab
This commit is contained in:
parent
bf809ad2a1
commit
f28937b0c5
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue