extract some keys to the plugin configs

This commit is contained in:
Oliver Hartmann
2022-12-05 15:12:09 +01:00
parent bce0373dfb
commit 11b954ff33
6 changed files with 54 additions and 60 deletions

View File

@@ -28,11 +28,6 @@ require('legendary').setup({
':split .<CR>',
description = 'Open a new horizontal split',
},
{
'<Space>g',
':lua _lazygit_toggle()<CR>',
description = 'Open lazygit',
},
{
'<leader>a',
'"ayiw',
@@ -43,36 +38,9 @@ require('legendary').setup({
'za',
description = 'Toggle fold',
},
{
'<c-n>',
'<Plug>(YankyCycleForward)',
description = 'Yanky cycle forward',
},
{
'<c-p>',
'<Plug>(YankyCycleBackward)',
description = 'Yanky cycle backward',
},
{
'<leader>s',
':AerialToggle<CR>',
description = 'Symbols outline',
},
},
commands =
{
{
':Octo pr list<CR>',
description = 'Github list PRs',
},
{
':Octo pr checkout<CR>',
description = 'Github checkout PR',
},
{
':Octo pr browser<CR>',
description = 'Github open PR in browser',
},
{
':set guifont=JetBrainsMonoNL\\ NF:h12<CR>',
description = 'Big font size',
@@ -81,30 +49,6 @@ require('legendary').setup({
':set guifont=JetBrainsMonoNL\\ NF:h9<CR>',
description = 'Reset font size',
},
{
':CMake build_all<CR>',
description = 'CMake build all',
},
{
':CMake configure<CR>',
description = 'CMake configure',
},
{
':CMake select_target<CR>',
description = 'CMake select target',
},
{
':CMake clear_cache<CR>',
description = 'CMake clear cache',
},
{
':LuaSnipListAvailable<CR>',
description = 'List snippets',
},
{
":lua require('telescope.builtin').live_grep({ prompt_title = 'find string in open buffers...', grep_open_files = true })<CR>",
description = 'Search in open files',
},
}
})