diff --git a/init.lua b/init.lua index 23cdb74..8dc4f82 100644 --- a/init.lua +++ b/init.lua @@ -81,7 +81,21 @@ require("lazy").setup({ end }, - { 'akinsho/bufferline.nvim', version = "*", dependencies = 'nvim-tree/nvim-web-devicons', opts = {} }, + { + 'romgrk/barbar.nvim', + dependencies = { + 'lewis6991/gitsigns.nvim', + 'nvim-tree/nvim-web-devicons', + }, + init = function() vim.g.barbar_auto_setup = false end, + opts = { + no_name_title = "unnamed", + icons = { + pinned = { button = '', filename = true }, + } + }, + version = '^1.0.0', + }, { "kylechui/nvim-surround", version = "*", @@ -178,7 +192,7 @@ require("lazy").setup({ vim.cmd.colorscheme "catppuccin-mocha" end }, - { "rcarriga/nvim-dap-ui", dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" } }, + { "rcarriga/nvim-dap-ui", dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" } }, { 'mrcjkb/rustaceanvim', version = '^4', @@ -212,7 +226,7 @@ require("lazy").setup({ 'linrongbin16/lsp-progress.nvim', opts = {} }, - { "cappyzawa/trim.nvim", opts = {} }, + { "cappyzawa/trim.nvim", opts = {} }, { "kdheepak/lazygit.nvim", cmd = { @@ -409,6 +423,17 @@ vim.keymap.set("n", "rr", ":MoltenReevaluateCell", vim.keymap.set("v", "r", ":MoltenEvaluateVisualgv", { silent = true, desc = "evaluate visual selection" }) +local opts = { noremap = true, silent = true } +local map = vim.api.nvim_set_keymap +map('n', 'bdo', "BufferCloseAllButCurrentOrPinned", opts); +map('n', 'bp', 'BufferPin', opts) +map('n', '', 'BufferPrevious', opts) +map('n', '', 'BufferNext', opts) +map('n', '', 'BufferMovePrevious', opts) +map('n', '', 'BufferMoveNext', opts) +map('n', '', 'BufferClose', opts) +map('n', '', 'BufferPick', opts) + vim.keymap.set('n', 'fg', 'lua require("spectre").toggle()', { desc = "Toggle Spectre" })