diff --git a/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua b/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua index 18643761..42b22ac1 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/mappings.lua @@ -131,9 +131,11 @@ vim.keymap.set("n", "/", ":CommentToggle", { silent = true, desc = " vim.keymap.set("v", "/", ":'<,'>CommentToggle", { silent = true, desc = "Toggle Selection Comment" }) -- Buffer mappings -vim.keymap.set("n", "", ":BufferPrevious", { silent = true, desc = "Go to Previous Buffer" }) -vim.keymap.set("n", "", ":BufferNext", { silent = true, desc = "Go to Next Buffer" }) -vim.keymap.set("n", "", ":BufferClose", { silent = true, desc = "Close Buffer" }) +vim.keymap.set("n", "", ":bprevious", { silent = true, desc = "Go to Previous Buffer" }) +vim.keymap.set("n", "", ":bnext", { silent = true, desc = "Go to Next Buffer" }) +vim.keymap.set("n", "", function() + require("bufdelete").bufdelete(0) +end, { silent = true, desc = "Close Buffer" }) -- Vim Notify Mappings vim.keymap.set("n", "nv", ":Telescope notify", { silent = true, desc = "Notifications: Search" }) @@ -167,7 +169,7 @@ wk.register({ name = "Git", }, }, { prefix = "" }) -vim.keymap.set("n", "gg", require('neogit').open, { silent = true, desc = "Neogit: Open" }) +vim.keymap.set("n", "gg", require("neogit").open, { silent = true, desc = "Neogit: Open" }) -- Gitsigns Mappings vim.keymap.set("n", "]g", "Gitsigns next_hunk", { silent = true, desc = "Gitsigns: Next Hunk" }) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua index 88800112..7f0ecebd 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua @@ -79,19 +79,6 @@ return packer.startup({ event = "BufEnter", }) - -- Tab Line at top of editor - - use({ - "romgrk/barbar.nvim", - requires = { "kyazdani42/nvim-web-devicons" }, - config = function() - require("bufferline").setup({ - animation = true, - auto_hide = true, - }) - end, - }) - -- Statusline. use({ "nvim-lualine/lualine.nvim", @@ -788,6 +775,11 @@ return packer.startup({ end, }) + -- Better buffer deletion + use({ + 'famiu/bufdelete.nvim' + }) + -- Leave at end!!! -- Install and deploy packer plugins -- automatically