From 351df69bdeb9cd2768d3cb77998437933893088a Mon Sep 17 00:00:00 2001 From: Aadi Rave Date: Sun, 16 Mar 2025 13:30:48 -0400 Subject: [PATCH] added tab support --- init.lua | 27 +++++++++++++++++++++++++++ lua/custom/plugins/init.lua | 25 +++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/init.lua b/init.lua index 598f5456..624fefd7 100644 --- a/init.lua +++ b/init.lua @@ -219,6 +219,33 @@ on_attach = end, }) +-- tab keybinds +local map = vim.api.nvim_set_keymap +local opts = { noremap = true, silent = true } + +-- Move to previous/next +map('n', '', 'BufferPrevious', opts) +map('n', '', 'BufferNext', opts) +-- Goto buffer in position... +map('n', '', 'BufferGoto 1', opts) +map('n', '', 'BufferGoto 2', opts) +map('n', '', 'BufferGoto 3', opts) +map('n', '', 'BufferGoto 4', opts) +map('n', '', 'BufferGoto 5', opts) +map('n', '', 'BufferGoto 6', opts) +map('n', '', 'BufferGoto 7', opts) +map('n', '', 'BufferGoto 8', opts) +map('n', '', 'BufferGoto 9', opts) +map('n', '', 'BufferLast', opts) +-- Sort automatically by... +map('n', 'bb', 'BufferOrderByBufferNumber', opts) +map('n', 'bn', 'BufferOrderByName', opts) +map('n', 'bd', 'BufferOrderByDirectory', opts) +map('n', 'bl', 'BufferOrderByLanguage', opts) +map('n', 'bw', 'BufferOrderByWindowNumber', opts) +-- Close buffer +map('n', '', 'BufferClose', opts) + -- [[ Install `lazy.nvim` plugin manager ]] -- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 29ab2021..8ea2285c 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -249,4 +249,29 @@ return { -- catppuccin if i want { 'catppuccin/nvim', name = 'catppuccin', priority = 1000 }, + + -- display whitespace in visual mode + { + 'mcauley-penney/visual-whitespace.nvim', + config = true, + }, + + -- tabs + { + '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 + }, }