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 /utils/installer/lv-config.example.lua | |
parent | f0d22b299f2a49272454f657b32dacadceeb0096 (diff) |
[Refactor] Make default keybindings configurable (#988)
Diffstat (limited to 'utils/installer/lv-config.example.lua')
-rw-r--r-- | utils/installer/lv-config.example.lua | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index 1ca556b2..0e1a4a26 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -16,7 +16,25 @@ O.completion.autocomplete = true O.colorscheme = "spacegray" O.default_options.wrap = true 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 }) -- TODO: User Config for predefined plugins -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile |