refactor: move open commands to leader level
This commit is contained in:
parent
74712e7a9a
commit
de592551df
@ -161,7 +161,8 @@ local mappings = {
|
|||||||
end,
|
end,
|
||||||
'Buffers',
|
'Buffers',
|
||||||
},
|
},
|
||||||
['f'] = { '<cmd>e .<cr>', 'Oil' },
|
['.'] = { '<cmd>Oil<cr>', 'Oil' },
|
||||||
|
['f'] = { '<cmd>e ~/.config/nvim/ <cr>', 'Neovim config' },
|
||||||
['rr'] = 'Search and replace all',
|
['rr'] = 'Search and replace all',
|
||||||
['rs'] = 'Search and replace',
|
['rs'] = 'Search and replace',
|
||||||
['b'] = {
|
['b'] = {
|
||||||
@ -248,11 +249,6 @@ local mappings = {
|
|||||||
v = { '<C-w>v', 'Vertical split' },
|
v = { '<C-w>v', 'Vertical split' },
|
||||||
h = { '<C-w>s', 'Horizontal split' },
|
h = { '<C-w>s', 'Horizontal split' },
|
||||||
},
|
},
|
||||||
o = {
|
|
||||||
name = 'Open',
|
|
||||||
n = { '<cmd>e ~/.config/nvim/ <cr>', 'Neovim config' },
|
|
||||||
g = { '<cmd>Neogit<cr>', 'Neogit' },
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
-- }}}
|
-- }}}
|
||||||
wk.register(mappings, opts)
|
wk.register(mappings, opts)
|
||||||
|
Loading…
Reference in New Issue
Block a user