Files
dotfiles/.config/nvim/lua/plugins/edgy.lua
Kyren223 a7eb6600c4 Added snacks terminal although I don't like it, I tried in the past some
terminal plugins and I found them very lacking, I'll do more research tmr
2025-04-25 00:09:04 +03:00

21 lines
731 B
Lua

return {
'folke/edgy.nvim',
event = 'VeryLazy',
opts = function(_, opts)
for _, pos in ipairs({ 'top', 'bottom', 'left', 'right' }) do
opts[pos] = opts[pos] or {}
table.insert(opts[pos], {
ft = 'snacks_terminal',
size = { height = 0.4 },
title = '%{b:snacks_terminal.id}: %{b:term_title}',
filter = function(_buf, win)
return vim.w[win].snacks_win
and vim.w[win].snacks_win.position == pos
and vim.w[win].snacks_win.relative == 'editor'
and not vim.w[win].trouble_preview
end,
})
end
end,
}