From 0df83afbb27271fcb1b85bde7576eadce757095a Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 22 Mar 2025 20:52:43 -0400 Subject: [PATCH] adding tab support --- init.lua | 22 ++++++++++++++++++++++ lazy-lock.json | 1 + 2 files changed, 23 insertions(+) diff --git a/init.lua b/init.lua index ad25e81..da8b630 100644 --- a/init.lua +++ b/init.lua @@ -207,9 +207,14 @@ vim.keymap.set("v", "", ":m '>+1gv=gv") -- move line up(v) vim.keymap.set("v", "", ":m '<-2gv=gv") -- move line down(v) vim.keymap.set("n", "", "yyp") -- copy line below +-- nvim tree vim.keymap.set("n", "e", ":NvimTreeToggle") vim.keymap.set("n", "z", ":NvimTreeCollapse") +-- tabs at top of screen +vim.keymap.set("n", "", "BufferPrevious") +vim.keymap.set("n", "", "BufferNext") + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` @@ -297,6 +302,23 @@ require("lazy").setup({ require("nvim-tree").setup({}) end, }, + { + "romgrk/barbar.nvim", + dependencies = { + "lewis6991/gitsigns.nvim", -- OPTIONAL: for git status + "nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons + }, + init = function() + vim.g.barbar_auto_setup = false + end, + opts = { + -- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default: + -- animation = true, + -- insert_at_start = true, + -- …etc. + }, + version = "^1.0.0", -- optional: only update when a new 1.x version is released + }, }, -- NOTE: Plugins can also be configured to run Lua code when they are loaded. diff --git a/lazy-lock.json b/lazy-lock.json index 4bbfb8d..2ac9013 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,6 +1,7 @@ { "LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" }, "auto-save.nvim": { "branch": "main", "commit": "29f793a3a7f98129387590269ffe3ad61ab5e509" }, + "barbar.nvim": { "branch": "master", "commit": "53b5a2f34b68875898f0531032fbf090e3952ad7" }, "cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" }, "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },