From b68c7097a2bd39512d9acd2a6a6e174cf983bdf2 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 4 Jul 2024 19:46:02 +0300 Subject: Neovim: added edgy.nvim, along with neotree integration --- .config/nvim/lua/options.lua | 3 +++ .config/nvim/lua/plugins/edgy.lua | 46 ++++++++++++++++++++++++++++++++++++ .config/nvim/lua/plugins/neotree.lua | 3 +++ 3 files changed, 52 insertions(+) create mode 100644 .config/nvim/lua/plugins/edgy.lua (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua index 44b6d93..64caa45 100644 --- a/.config/nvim/lua/options.lua +++ b/.config/nvim/lua/options.lua @@ -33,6 +33,9 @@ vim.opt.wrap = false vim.opt.scrolloff = 8 vim.opt.undofile = true vim.opt.termguicolors = true +vim.opt.laststatus = 3 -- views can only be fully collapsed with the global statusline +vim.opt.splitkeep = "screen" -- for edgy.nvim + -- Disable warnings for missing language providers vim.g.loaded_node_provider = 0 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', + }, + }, + }, +} diff --git a/.config/nvim/lua/plugins/neotree.lua b/.config/nvim/lua/plugins/neotree.lua index ab4db82..b8a4ee9 100644 --- a/.config/nvim/lua/plugins/neotree.lua +++ b/.config/nvim/lua/plugins/neotree.lua @@ -6,6 +6,9 @@ return { 'nvim-tree/nvim-web-devicons', 'MunifTanjim/nui.nvim', }, + opts = { + open_files_do_not_replace_types = { 'terminal', 'Trouble', 'qf', 'edgy' }, + }, config = function() vim.keymap.set('n', 'nt', ':Neotree toggle reveal left', { desc = '[N]eotree [T]oggle' }) end, -- cgit v1.3.1