1 parent e3cc07d commit 6cffbedCopy full SHA for 6cffbed
1 file changed
home/dot_config/exact_nvim/exact_lua/exact_specs/snacks.lua
@@ -65,7 +65,8 @@ Plugin.opts = {
65
ignored = true,
66
hidden = true,
67
git_untracked = true,
68
- follow_file = false,
+ follow_file = true,
69
+ exclude = { 'node_modules' },
70
win = {
71
list = {
72
keys = {
@@ -194,15 +195,14 @@ Plugin.keys = {
194
195
'<Space>f',
196
function()
197
local snacks = require('snacks')
- snacks.explorer.open()
198
- end,
199
- desc = 'File Explorer',
200
- },
201
- {
202
- '<Space>F',
203
- function()
204
- local snacks = require('snacks')
205
- snacks.explorer.reveal()
+
+ local explorer = snacks.picker.get({ source = 'explorer' })[1]
+ if explorer then
+ explorer:focus()
+ else
+ snacks.explorer.reveal()
+ end
206
end,
207
desc = 'Reveal in Explorer',
208
},
0 commit comments