summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/edgy.lua
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-07-04 19:46:02 +0300
committerKyren223 <ulmliad223@gmail.com>2024-07-04 19:46:02 +0300
commitb68c7097a2bd39512d9acd2a6a6e174cf983bdf2 (patch)
tree98ec6107defe3a5c7489f8dd4b5c753b4902a785 /.config/nvim/lua/plugins/edgy.lua
parent4193f886d9cf3e5fcb1b9c6870f0a99086ded433 (diff)
Neovim: added edgy.nvim, along with neotree integration
Diffstat (limited to '.config/nvim/lua/plugins/edgy.lua')
-rw-r--r--.config/nvim/lua/plugins/edgy.lua46
1 files changed, 46 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/edgy.lua b/.config/nvim/lua/plugins/edgy.lua
new file mode 100644
index 0000000..2b3551b
--- /dev/null
+++ b/.config/nvim/lua/plugins/edgy.lua
@@ -0,0 +1,46 @@
+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,
+ },
+ { 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',
+ },
+ {
+ title = 'Neo-Tree Buffers',
+ ft = 'neo-tree',
+ filter = function(buf)
+ return vim.b[buf].neo_tree_source == 'buffers'
+ end,
+ pinned = true,
+ open = 'Neotree position=top buffers',
+ },
+ },
+ },
+}