refactor(keymaps)!: don't hijack H/L by default (#2874)

This commit is contained in:
Benedikt Schnatterbeck 2022-08-12 17:01:11 +01:00 committed by GitHub
parent 9caa457810
commit 45f9825d1e
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -61,10 +61,6 @@ local defaults = {
["<C-Left>"] = ":vertical resize -2<CR>", ["<C-Left>"] = ":vertical resize -2<CR>",
["<C-Right>"] = ":vertical resize +2<CR>", ["<C-Right>"] = ":vertical resize +2<CR>",
-- Tab switch buffer
["<S-l>"] = ":BufferLineCycleNext<CR>",
["<S-h>"] = ":BufferLineCyclePrev<CR>",
-- Move current line / block with Alt-j/k a la vscode. -- Move current line / block with Alt-j/k a la vscode.
["<A-j>"] = ":m .+1<CR>==", ["<A-j>"] = ":m .+1<CR>==",
["<A-k>"] = ":m .-2<CR>==", ["<A-k>"] = ":m .-2<CR>==",

View file

@ -19,6 +19,8 @@ lvim.colorscheme = "onedarker"
lvim.leader = "space" lvim.leader = "space"
-- add your own keymapping -- add your own keymapping
lvim.keys.normal_mode["<C-s>"] = ":w<cr>" lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
-- lvim.keys.normal_mode["<S-l>"] = ":BufferLineCycleNext<CR>"
-- lvim.keys.normal_mode["<S-h>"] = ":BufferLineCyclePrev<CR>"
-- unmap a default keymapping -- unmap a default keymapping
-- vim.keymap.del("n", "<C-Up>") -- vim.keymap.del("n", "<C-Up>")
-- override a default keymapping -- override a default keymapping