summaryrefslogtreecommitdiff
path: root/utils/installer
diff options
context:
space:
mode:
authorLuc Sinet <[email protected]>2021-08-02 17:19:44 +0200
committerGitHub <[email protected]>2021-08-02 11:19:44 -0400
commit6d14d7b5da54fffabfec18b2b09a488d3661d7f9 (patch)
treee5f0532c0bdd028b597faf3c2bc6d5cd2748a6f3 /utils/installer
parent8e88bf52587c99d1070258f03500cbbdb9b1420c (diff)
[Refactor] Adopt which key mapping style (#1210)
* Refactor keymappings to match which-key style * Update confif example + remove redundant way of registering mappings
Diffstat (limited to 'utils/installer')
-rw-r--r--utils/installer/config.example-no-ts.lua21
-rw-r--r--utils/installer/config.example.lua21
2 files changed, 14 insertions, 28 deletions
diff --git a/utils/installer/config.example-no-ts.lua b/utils/installer/config.example-no-ts.lua
index c0df5b8b..c74548dc 100644
--- a/utils/installer/config.example-no-ts.lua
+++ b/utils/installer/config.example-no-ts.lua
@@ -7,23 +7,16 @@ lvim.colorscheme = "spacegray"
-- keymappings
lvim.leader = "space"
--- overwrite the key-mappings provided by LunarVim for any mode, or leave it empty to keep them
+-- overwrite/augment the key-mappings provided by LunarVim for any mode, or leave empty to keep the defaults.
-- lvim.keys.normal_mode = {
--- Page down/up
--- {'[d', '<PageUp>'},
--- {']d', '<PageDown>'},
+-- -- Page down/up
+-- ["[d"] = { "<PageUp>" },
+-- ["]d"] = { "<PageDown>" },
--
--- Navigate buffers
--- {'<Tab>', ':bnext<CR>'},
--- {'<S-Tab>', ':bprevious<CR>'},
+-- -- Navigate buffers
+-- ["<Tab>"] = { ":bnext<CR>" },
+-- ["<S-Tab>"] = { ":bprevious<CR>" },
-- }
--- if you just want to augment the existing ones then use the utility function
--- require("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
diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua
index 843917a7..a7a55874 100644
--- a/utils/installer/config.example.lua
+++ b/utils/installer/config.example.lua
@@ -15,23 +15,16 @@ lvim.lint_on_save = true
lvim.colorscheme = "spacegray"
-- keymappings
lvim.leader = "space"
--- overwrite the key-mappings provided by LunarVim for any mode, or leave it empty to keep them
+-- overwrite/augment the key-mappings provided by LunarVim for any mode, or leave empty to keep the defaults.
-- lvim.keys.normal_mode = {
--- Page down/up
--- {'[d', '<PageUp>'},
--- {']d', '<PageDown>'},
+-- -- Page down/up
+-- ["[d"] = { "<PageUp>" },
+-- ["]d"] = { "<PageDown>" },
--
--- Navigate buffers
--- {'<Tab>', ':bnext<CR>'},
--- {'<S-Tab>', ':bprevious<CR>'},
+-- -- Navigate buffers
+-- ["<Tab>"] = { ":bnext<CR>" },
+-- ["<S-Tab>"] = { ":bprevious<CR>" },
-- }
--- if you just want to augment the existing ones then use the utility function
--- require("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