vibe-coding-cn/assets/repo/my-nvim/nvim-config/lua/plugins/snacks.lua

29 lines
818 B
Lua
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

return {
{
"folke/snacks.nvim",
opts = function(_, opts)
-- ==================== 默认显示隐藏/被忽略文件 ====================
-- LazyVim install_version=8 默认 picker/explorer 都优先走 Snacks这里统一打开 hidden/ignored。
opts.picker = opts.picker or {}
opts.picker.sources = opts.picker.sources or {}
local sources = opts.picker.sources
sources.files = vim.tbl_deep_extend("force", sources.files or {}, {
hidden = true,
ignored = true,
})
sources.explorer = vim.tbl_deep_extend("force", sources.explorer or {}, {
hidden = true,
ignored = true,
})
sources.grep = vim.tbl_deep_extend("force", sources.grep or {}, {
hidden = true,
ignored = true,
})
end,
},
}