mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-27 12:45:53 +02:00
[Refactor] Adopt which key mapping style (#1210)
* Refactor keymappings to match which-key style * Update confif example + remove redundant way of registering mappings
This commit is contained in:
parent
8e88bf5258
commit
6d14d7b5da
6 changed files with 70 additions and 84 deletions
|
@ -42,12 +42,12 @@ M.config = function()
|
|||
keymap = {
|
||||
values = {
|
||||
insert_mode = {
|
||||
{ "<Tab>", 'pumvisible() ? "<C-n>" : "<Tab>"' },
|
||||
{ "<S-Tab>", 'pumvisible() ? "<C-p>" : "<S-Tab>"' },
|
||||
{ "<C-Space>", "compe#complete()" },
|
||||
{ "<C-e>", "compe#close('<C-e>')" },
|
||||
{ "<C-f>", "compe#scroll({ 'delta': +4 })" },
|
||||
{ "<C-d>", "compe#scroll({ 'delta': -4 })" },
|
||||
["<Tab>"] = { 'pumvisible() ? "<C-n>" : "<Tab>"' },
|
||||
["<S-Tab>"] = { 'pumvisible() ? "<C-p>" : "<S-Tab>"' },
|
||||
["<C-Space>"] = { "compe#complete()" },
|
||||
["<C-e>"] = { "compe#close('<C-e>')" },
|
||||
["<C-f>"] = { "compe#scroll({ 'delta': +4 })" },
|
||||
["<C-d>"] = { "compe#scroll({ 'delta': -4 })" },
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue