diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-04-25 00:09:04 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-04-25 00:09:04 +0300 |
| commit | a7eb6600c4b633df791bb1df3e1a35f26fd22a84 (patch) | |
| tree | 3f34923e1b97d04461f2a753cec3b6c81960e58a /.config/nvim/lua/plugins/edgy.lua | |
| parent | 018350e5527272c8e569e3af2236beff4dedc81c (diff) | |
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
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, } |
