From d0766aa55fa9638d980a1f1e6c67388dcd2cb571 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 7 Jul 2024 11:48:41 +0300 Subject: Neovim: refactored more files, including trouble, neotree, edgy and oil --- .config/nvim/lua/custom/plugins/edgy.lua | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .config/nvim/lua/custom/plugins/edgy.lua (limited to '.config/nvim/lua/custom/plugins/edgy.lua') 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', + }, + }, + }, +} -- cgit v1.3.1