diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 15f0e7e..1dc12b0 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -34,7 +34,7 @@ map("n", "s", [[:%s/\<\>//gI]]) -- Turn file into a Linux executable map('n', 'x', '!chmod +x %', { silent = true }); --- Harpoon ------------------------------- +-- Harpoon ------------------------------ -- local harpoon = require('harpoon'); -- harpoon:setup(); @@ -62,3 +62,8 @@ map({ 'n', 'v' }, '', '', { silent = true }); -- Remap for dealing with word wrap map('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }); map('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }); + +-- Barbar ------------------------------- + +map('n', 'wc', 'BufferClose', { desc = 'Buffer close', noremap = true, silent = true }); +map('n', 'wA', 'BufferCloseAllButCurrent', { desc = 'Buffer close all', noremap = true, silent = true }); diff --git a/lua/pluginlist.lua b/lua/pluginlist.lua index cef8bb3..630cec1 100644 --- a/lua/pluginlist.lua +++ b/lua/pluginlist.lua @@ -115,6 +115,16 @@ return { branch = 'harpoon2', dependencies = { 'nvim-lua/plenary.nvim', }, }, ]] + { + 'romgrk/barbar.nvim', + dependencies = { + 'lewis6991/gitsigns.nvim', + 'nvim-tree/nvim-web-devicons', + }, + init = function() vim.g.barbar_auto_setup = false end, + opts = {}, + lazy = false, + }, { 'stevearc/conform.nvim', opts = {