diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/mappings.lua | 5 | ||||
| -rw-r--r-- | lua/plugins/bufferline.lua | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/lua/config/mappings.lua b/lua/config/mappings.lua index 27fc506..a203a65 100644 --- a/lua/config/mappings.lua +++ b/lua/config/mappings.lua @@ -14,3 +14,8 @@ vim.api.nvim_set_keymap( { noremap = true, silent = true, desc = "Split Down" } ) vim.api.nvim_set_keymap("n", "<Esc>", ":noh<CR>", { noremap = true, silent = true, desc = "Clear Search" }) + + +-- bufferline keymaps + +vim.api.nvim_set_keymap("n", "<leader>C", ":BufferLineCloseOthers<CR>", { noremap = true, silent = true, desc = "Close Other Buffers" }) diff --git a/lua/plugins/bufferline.lua b/lua/plugins/bufferline.lua new file mode 100644 index 0000000..718dae4 --- /dev/null +++ b/lua/plugins/bufferline.lua @@ -0,0 +1,12 @@ +return { + "akinsho/bufferline.nvim", + version = "*", + dependencies = "nvim-tree/nvim-web-devicons", + config = function () + require("bufferline").setup { + options = { + mode = 'buffers', + } + } + end +} |
