mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +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 history = require("project_nvim.utils.history")
|
||||
local results = history.get_recent_projects()
|
||||
local actions = require("fzf-lua.actions")
|
||||
fzf_lua.fzf_exec(results, {
|
||||
actions = {
|
||||
["default"] = {
|
||||
|
@ -12,6 +13,7 @@ local pick = function()
|
|||
fzf_lua.files({ cwd = selected[1] })
|
||||
end,
|
||||
},
|
||||
["ctrl-t"] = actions.file_tabedit,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue