refactor: move open commands to leader level

This commit is contained in:
fiplox 2023-01-29 14:00:58 +01:00
parent 74712e7a9a
commit de592551df

View File

@ -161,7 +161,8 @@ local mappings = {
end,
'Buffers',
},
['f'] = { '<cmd>e .<cr>', 'Oil' },
['.'] = { '<cmd>Oil<cr>', 'Oil' },
['f'] = { '<cmd>e ~/.config/nvim/ <cr>', 'Neovim config' },
['rr'] = 'Search and replace all',
['rs'] = 'Search and replace',
['b'] = {
@ -248,11 +249,6 @@ local mappings = {
v = { '<C-w>v', 'Vertical 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)