diff options
author | kylo252 <[email protected]> | 2021-07-18 19:49:41 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-18 17:49:41 +0000 |
commit | 59106e860edde09107d2628a81eee816871eb065 (patch) | |
tree | e6e6b777c26d5b9b64ff92251c5cb7bcb3a6318d /README.md | |
parent | f0d22b299f2a49272454f657b32dacadceeb0096 (diff) |
[Refactor] Make default keybindings configurable (#988)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -67,7 +67,27 @@ O.completion.autocomplete = true O.default_options.relativenumber = true O.colorscheme = 'spacegray' O.default_options.timeoutlen = 100 -O.leader_key = ' ' + +-- keymappings +O.keys.leader_key = "space" +-- overwrite the key-mappings provided by LunarVim for any mode, or leave it empty to keep them +O.keys.normal_mode = { + -- Page down/up + {'[d', '<PageUp>'}, + {']d', '<PageDown>'}, + + -- Navigate buffers + {'<Tab>', ':bnext<CR>'}, + {'<S-Tab>', ':bprevious<CR>'}, +} +-- if you just want to augment the existing ones then use the utility function +require("lv-utils").add_keymap_insert_mode({ silent = true }, { + { "<C-s>", ":w<cr>" }, + { "<C-c>", "<ESC>" } +}) + +-- you can also use the native vim way directly +vim.api.nvim_set_keymap("i", "<C-Space>", "compe#complete()", { noremap = true, silent = true, expr = true }) -- After changing plugin config it is recommended to run :PackerCompile O.plugin.dashboard.active = true |