Bring back snacks recent source but restrict it to cwd. Files picker now
include hidden files.
This commit is contained in:
parent
09d232dfc6
commit
ca1a670e15
1 changed files with 16 additions and 2 deletions
|
|
@ -17,6 +17,21 @@ return {
|
||||||
},
|
},
|
||||||
picker = {
|
picker = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
sources = {
|
||||||
|
recent = {
|
||||||
|
filter = {
|
||||||
|
cwd = true,
|
||||||
|
paths = {
|
||||||
|
[vim.fn.stdpath("data")] = false,
|
||||||
|
[vim.fn.stdpath("cache")] = false,
|
||||||
|
[vim.fn.stdpath("state")] = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
files = {
|
||||||
|
hidden = true,
|
||||||
|
}
|
||||||
|
},
|
||||||
win = {
|
win = {
|
||||||
input = { border = "single", },
|
input = { border = "single", },
|
||||||
list = { border = "single", },
|
list = { border = "single", },
|
||||||
|
|
@ -121,8 +136,7 @@ return {
|
||||||
|
|
||||||
{ "<leader>z", function() Snacks.zen() end, },
|
{ "<leader>z", function() Snacks.zen() end, },
|
||||||
|
|
||||||
|
{ "<leader>f", function() Snacks.picker.smart() end, },
|
||||||
{ "<leader>f", function() Snacks.picker.smart({ multi = { "buffers", "files" } }) end, },
|
|
||||||
{ "<leader>g", function() Snacks.picker.grep() end, },
|
{ "<leader>g", function() Snacks.picker.grep() end, },
|
||||||
{ "<leader>b", function() Snacks.picker.buffers() end, },
|
{ "<leader>b", function() Snacks.picker.buffers() end, },
|
||||||
{ "<leader>l", function() Snacks.picker.git_log_file() end, },
|
{ "<leader>l", function() Snacks.picker.git_log_file() end, },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue