diff options
Diffstat (limited to '.config/nvim/lua/plugins/edgy.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/edgy.lua | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/.config/nvim/lua/plugins/edgy.lua b/.config/nvim/lua/plugins/edgy.lua index 872247f..f84d0ba 100644 --- a/.config/nvim/lua/plugins/edgy.lua +++ b/.config/nvim/lua/plugins/edgy.lua @@ -1,28 +1,20 @@ return { 'folke/edgy.nvim', event = 'VeryLazy', - opts = { - bottom = { - 'Trouble', - { ft = 'qf', title = 'QuickFix' }, - { - ft = 'help', - size = { height = 20 }, - filter = function(buf) -- only show help buffers - return vim.bo[buf].buftype == 'help' + 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, - }, - { ft = 'spectre_panel', size = { height = 0.4 } }, - }, - left = { - { - title = 'Neo-Tree', - ft = 'neo-tree', - filter = function(buf) - return vim.b[buf].neo_tree_source == 'filesystem' - end, - size = { height = 0.5 }, - }, - }, - }, + }) + end + end, } |
