summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins/edgy.lua
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-07-07 11:48:41 +0300
committerKyren223 <ulmliad223@gmail.com>2024-07-07 11:48:41 +0300
commitd0766aa55fa9638d980a1f1e6c67388dcd2cb571 (patch)
treecba4b086208d716dac182f8f5baca85f8bfce9bd /.config/nvim/lua/custom/plugins/edgy.lua
parent403aa74f8ad7fab227c3dd282ac9143da9b25b7b (diff)
Neovim: refactored more files, including trouble, neotree, edgy and oil
Diffstat (limited to '.config/nvim/lua/custom/plugins/edgy.lua')
-rw-r--r--.config/nvim/lua/custom/plugins/edgy.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/.config/nvim/lua/custom/plugins/edgy.lua b/.config/nvim/lua/custom/plugins/edgy.lua
new file mode 100644
index 0000000..05f0b98
--- /dev/null
+++ b/.config/nvim/lua/custom/plugins/edgy.lua
@@ -0,0 +1,38 @@
+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'
+ end,
+ },
+ -- TODO: Add spectral
+ -- { 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 },
+ },
+ {
+ title = 'Neo-Tree Git',
+ ft = 'neo-tree',
+ filter = function(buf)
+ return vim.b[buf].neo_tree_source == 'git_status'
+ end,
+ pinned = true,
+ open = 'Neotree position=right git_status',
+ },
+ },
+ },
+}