feat: barbar.nvim

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-03-15 22:39:08 -03:00
parent 440115a087
commit d657290c8c
2 changed files with 16 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ map("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
-- Turn file into a Linux executable
map('n', '<leader>x', '<cmd>!chmod +x %<CR>', { silent = true });
-- Harpoon -------------------------------
-- Harpoon ------------------------------
-- local harpoon = require('harpoon');
-- harpoon:setup();
@@ -62,3 +62,8 @@ map({ 'n', 'v' }, '<Space>', '<Nop>', { 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', '<cmd>BufferClose<cr>', { desc = 'Buffer close', noremap = true, silent = true });
map('n', 'wA', '<cmd>BufferCloseAllButCurrent<cr>', { desc = 'Buffer close all', noremap = true, silent = true });

View File

@@ -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 = {