-
I am trying to pass a list projects to the here is my picker.projects config {
finder = "recent_projects",
format = "file",
dev = { "~/.config/", "~/Projects" },
confirm = "load_session",
-- patterns = { "=src", ".git", "_darcs", ".hg", ".bzr", ".svn", "package.json", "Makefile" },
-- patterns = { "=src", ".git", "Makefile", "package.json", "Cargo.toml", "go.mod", "init.lua" },
patterns = {},
recent = true,
matcher = {
frecency = true, -- use frecency boosting
sort_empty = false, -- sort even when the filter is empty
cwd_bonus = false,
},
-- sort = { fields = { "score:desc", "idx" } },
projects = {
"~/.config/nvim",
"~/.zsh_dir",
"~/.config/qtile",
"~/.config/sway",
"~/.config/waybar",
"~/.config/kitty",
"~/.config/wezterm",
"~/Documents/Notes",
"~/Projects/tshowcase/showcase",
},
win = {
preview = { minimal = true },
input = {
keys = {
-- every action will always first change the cwd of the current tabpage to the project
["<c-e>"] = { { "tcd", "picker_explorer" }, mode = { "n", "i" } },
["<c-f>"] = { { "tcd", "picker_files" }, mode = { "n", "i" } },
["<c-g>"] = { { "tcd", "picker_grep" }, mode = { "n", "i" } },
["<c-r>"] = { { "tcd", "picker_recent" }, mode = { "n", "i" } },
["<c-w>"] = { { "tcd" }, mode = { "n", "i" } },
["<c-t>"] = {
function(picker)
vim.cmd("tabnew")
Snacks.notify("New tab opened")
picker:close()
Snacks.picker.projects()
end,
mode = { "n", "i" },
},
},
},
},
}
|
Beta Was this translation helpful? Give feedback.
Answered by
folke
Feb 7, 2025
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gaven140
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
opts.projects
were never actually added. Just fixed that.