summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/core/bufferline.lua
blob: 68b08ce258695515fa9239239df7ef1ee7166475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
local M = {}

M.config = function()
  options.builtin.bufferline = {
    active = true,
    on_config_done = nil,
    keymap = {
      normal_mode = {
        ["<S-l>"] = ":BufferNext<CR>",
        ["<S-h>"] = ":BufferPrevious<CR>",
      },
    },
  }
end

M.setup = function()
  local keymap = require "keymappings"
  keymap.append_to_defaults(options.builtin.bufferline.keymap)

  if options.builtin.bufferline.on_config_done then
    options.builtin.bufferline.on_config_done()
  end
end

return M