LunarVim.LunarVim/lua/lvim/core/bufferline.lua
2021-11-16 13:55:57 -05:00

26 lines
544 B
Lua

local M = {}
M.config = function()
vim.g.bufferline = { no_name_title = "Empty" }
lvim.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 "lvim.keymappings"
keymap.append_to_defaults(lvim.builtin.bufferline.keymap)
if lvim.builtin.bufferline.on_config_done then
lvim.builtin.bufferline.on_config_done()
end
end
return M