mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 04:21:08 +00:00
Merge 9f77a2a350 into 459a4c3b10
This commit is contained in:
commit
e3f38f69fa
1 changed files with 8 additions and 0 deletions
|
|
@ -246,6 +246,14 @@ return {
|
|||
mode = "search",
|
||||
exclude = {
|
||||
function(win)
|
||||
local source = picker.opts.source ~= "explorer" and picker.opts.source or nil
|
||||
local snacks_explorer = require("snacks").picker.get({ source = "explorer" })[1]
|
||||
local snacks_picker = source and require("snacks").picker.get({ source = source })[1]
|
||||
local picker_win = snacks_picker and snacks_picker.layout.wins["list"].win
|
||||
|
||||
if snacks_explorer and snacks_picker then
|
||||
return win ~= picker_win
|
||||
end
|
||||
return vim.bo[vim.api.nvim_win_get_buf(win)].filetype ~= "snacks_picker_list"
|
||||
end,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue