Cleaned up the keymaps such that the keymaps are where the plugins are. This is for easy sharing of configurations

This commit is contained in:
2025-08-29 13:34:49 +02:00
parent e37215ae97
commit e085a5cc23
11 changed files with 235 additions and 214 deletions

View File

@@ -63,8 +63,6 @@ return {
'lewis6991/gitsigns.nvim',
'nvim-tree/nvim-web-devicons',
},
init = function() vim.g.barbar_auto_setup = false end,
cmd = { "BufferNext", "BufferPrevious" },
opts = {
clickable = false,
tabpages = false,
@@ -72,5 +70,11 @@ return {
icons = { filetype = { enabled = false } }
},
version = '^1.0.0', -- only update when a new 1.x version is released
config = function()
vim.keymap.set("n", "L", ":BufferNext<CR>", { silent = true })
vim.keymap.set("n", "H", ":BufferPrevious<CR>", { silent = true })
vim.keymap.set("n", "<leader>bd", ":BufferDelete<CR>")
end
},
}