extract some keys to the plugin configs
This commit is contained in:
@@ -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',
|
||||
},
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user