From bb5185eac437701c43f085c64026b1b959853567 Mon Sep 17 00:00:00 2001 From: poslop Date: Fri, 6 Feb 2026 16:16:56 -0600 Subject: [PATCH] buffer mappings --- lua/config/maps.lua | 5 +++++ lua/plugins/theme.lua | 17 ++++++----------- lua/plugins/windows.lua | 24 ++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 11 deletions(-) create mode 100644 lua/plugins/windows.lua diff --git a/lua/config/maps.lua b/lua/config/maps.lua index 50288e1..8142a09 100644 --- a/lua/config/maps.lua +++ b/lua/config/maps.lua @@ -22,3 +22,8 @@ map("t", "", "", { desc = "terminal escape terminal mode" }) map("n", "th", "ToggleTerm direction=horizontal", { desc = "ToggleTerm: horizontal" }) map("n", "tf", "ToggleTerm direction=float", { desc = "ToggleTerm: float" }) + +map("n", "", "BufferLineCycleNext", { desc = "Next buffer" }) +map("n", "", "BufferLineCyclePrev", { desc = "Previous buffer" }) +map("n", "ba", "BufferLineCloseOthers", { desc = "Close other buffers" }) +map("n", "x", "bdelete", { desc = "Close buffer" }) diff --git a/lua/plugins/theme.lua b/lua/plugins/theme.lua index d09388c..d18dd13 100644 --- a/lua/plugins/theme.lua +++ b/lua/plugins/theme.lua @@ -1,13 +1,8 @@ return { - { - "folke/tokyonight.nvim", - lazy = false, - priority = 1000, - opts = {}, - }, - { - 'akinsho/bufferline.nvim', - version = "*", - dependencies = 'nvim-tree/nvim-web-devicons' - } + { + "folke/tokyonight.nvim", + lazy = false, + priority = 1000, + opts = {}, + }, } diff --git a/lua/plugins/windows.lua b/lua/plugins/windows.lua new file mode 100644 index 0000000..6e99ad0 --- /dev/null +++ b/lua/plugins/windows.lua @@ -0,0 +1,24 @@ +return { + { + "nvim-tree/nvim-tree.lua", + version = "*", + lazy = false, + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + config = function() + require("nvim-tree").setup {} + end, + }, + + { + "akinsho/toggleterm.nvim", + version = "*", + opts = {}, + }, + { + "akinsho/bufferline.nvim", + version = "*", + dependencies = "nvim-tree/nvim-web-devicons", + }, +}