refactor: cleanup keymaps and fixed bnext/bprev when bufferline is disabled

This commit is contained in:
Folke Lemaitre
2023-01-11 16:14:09 +01:00
parent 06107862a7
commit 2ea489c7ba
3 changed files with 40 additions and 33 deletions

View File

@ -43,6 +43,10 @@ return {
{
"akinsho/nvim-bufferline.lua",
event = "VeryLazy",
init = function()
vim.keymap.set("n", "<s-h>", "<cmd>BufferLineCyclePrev<cr>", { desc = "Prev Buffer" })
vim.keymap.set("n", "<s-l>", "<cmd>BufferLineCycleNext<cr>", { desc = "Next Buffer" })
end,
opts = {
options = {
diagnostics = "nvim_lsp",