Make keymaps of bufferline and compe configurable (#1205)

This commit is contained in:
Luc Sinet 2021-08-02 08:05:46 +02:00 committed by GitHub
parent 3af0f98887
commit d5557f56c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 13 deletions

View file

@ -1,2 +1,16 @@
vim.api.nvim_set_keymap("n", "<S-l>", ":BufferNext<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap("n", "<S-h>", ":BufferPrevious<CR>", { noremap = true, silent = true })
lvim.builtin.bufferline = {
keymap = {
values = {
normal_mode = {
{ "<S-l>", ":BufferNext<CR>" },
{ "<S-h>", ":BufferPrevious<CR>" },
},
},
opts = {
normal_mode = { noremap = true, silent = true },
},
},
}
local keymap = require "utils.keymap"
keymap.load(lvim.builtin.bufferline.keymap.values, lvim.builtin.bufferline.keymap.opts)