diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-07 11:48:41 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-07 11:48:41 +0300 |
| commit | d0766aa55fa9638d980a1f1e6c67388dcd2cb571 (patch) | |
| tree | cba4b086208d716dac182f8f5baca85f8bfce9bd /.config/nvim/lua/custom/plugins/edgy.lua | |
| parent | 403aa74f8ad7fab227c3dd282ac9143da9b25b7b (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.lua | 38 |
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', + }, + }, + }, +} |
