2022-11-11 21:41:26 -06:00
|
|
|
-- Mapping data with "desc" stored directly by vim.keymap.set().
|
|
|
|
--
|
|
|
|
-- Please use this mappings table to set keyboard mapping since this is the
|
|
|
|
-- lower level configuration and more robust one. (which-key will
|
|
|
|
-- automatically pick-up stored data by this setting.)
|
|
|
|
return {
|
|
|
|
-- first key is the mode
|
|
|
|
n = {
|
|
|
|
-- second key is the lefthand side of the map
|
|
|
|
-- mappings seen under group name "Buffer"
|
|
|
|
["<leader>bb"] = { "<cmd>tabnew<cr>", desc = "New tab" },
|
|
|
|
["<leader>bc"] = { "<cmd>BufferLinePickClose<cr>", desc = "Pick to close" },
|
|
|
|
["<leader>bj"] = { "<cmd>BufferLinePick<cr>", desc = "Pick to jump" },
|
|
|
|
["<leader>bt"] = { "<cmd>BufferLineSortByTabs<cr>", desc = "Sort by tabs" },
|
|
|
|
["<leader>bp"] = { "<cmd>:bp<cr>", desc = "Previous Buffer" },
|
2022-12-09 14:32:12 -06:00
|
|
|
-- disable default bindings
|
|
|
|
["<C-Down>"] = false,
|
|
|
|
["<C-Left>"] = false,
|
|
|
|
["<C-Right>"] = false,
|
|
|
|
["<C-Up>"] = false,
|
|
|
|
["<C-q>"] = false,
|
|
|
|
["<C-s>"] = false,
|
|
|
|
["<leader>sb"] = false,
|
|
|
|
["<leader>sc"] = false,
|
|
|
|
["<leader>sh"] = false,
|
|
|
|
["<leader>sk"] = false,
|
|
|
|
["<leader>sm"] = false,
|
|
|
|
["<leader>sn"] = false,
|
|
|
|
["<leader>sr"] = false,
|
|
|
|
["q:"] = "<Nop>",
|
|
|
|
-- navigating wrapped lines
|
|
|
|
j = { "gj", desc = "Navigate down" },
|
|
|
|
k = { "gk", desc = "Navigate down" },
|
2022-11-11 21:41:26 -06:00
|
|
|
},
|
|
|
|
}
|
2022-12-09 14:32:12 -06:00
|
|
|
|
|
|
|
-- map('n', 'j', "v:count ? 'j' : 'gj'", { expr = true, noremap = true })
|
|
|
|
-- map('n', 'k', "v:count ? 'k' : 'gk'", { expr = true, noremap = true })
|
|
|
|
-- map('n', "<C-j>","}",{noremap = true})
|
|
|
|
-- map('n', "<C-k>","{",{noremap = true})
|