refactor(snacks): snacks_float -> snacks_win

This commit is contained in:
Folke Lemaitre 2024-11-05 17:03:47 +01:00
parent b6ddeb2341
commit 7b150d774e
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 5 additions and 5 deletions

View file

@ -118,9 +118,9 @@ return {
size = { height = 0.4 }, size = { height = 0.4 },
title = "%{b:snacks_terminal.id}: %{b:term_title}", title = "%{b:snacks_terminal.id}: %{b:term_title}",
filter = function(_buf, win) filter = function(_buf, win)
return vim.w[win].snacks_float return vim.w[win].snacks_win
and vim.w[win].snacks_float.position == pos and vim.w[win].snacks_win.position == pos
and vim.w[win].snacks_float.relative == "editor" and vim.w[win].snacks_win.relative == "editor"
and not vim.w[win].trouble_preview and not vim.w[win].trouble_preview
end, end,
}) })

View file

@ -20,7 +20,7 @@ return {
"help", "help",
"lazy", "lazy",
"snacks_terminal", "snacks_terminal",
"snacks_float", "snacks_win",
"mason", "mason",
"neo-tree", "neo-tree",
"notify", "notify",

View file

@ -219,7 +219,7 @@ return {
"mason", "mason",
"notify", "notify",
"toggleterm", "toggleterm",
"snacks_float", "snacks_win",
"snacks_terminal", "snacks_terminal",
}, },
}, },