fixed loading of aerial

This commit is contained in:
Oliver Hartmann 2022-12-20 10:57:56 +01:00
parent b91b0b48b4
commit dc534b5a38
3 changed files with 8 additions and 2 deletions

View File

@ -200,8 +200,10 @@ return require('packer').startup(function()
config = get_setup('aerial'),
opt = true,
module = 'aerial',
cmd = {'Telescope aerial', 'AerialToggle'},
keys = {
{ 'n', '<leader>s' }
{ 'n', '<leader>s' },
{ 'n', '<A-m>' }
}
}
use {

View File

@ -13,6 +13,11 @@ require('legendary').keymaps(
'<leader>s',
':AerialToggle<CR>',
description = 'Symbols outline',
},
{
'<a-m>',
':Telescope aerial<CR>',
description = 'Telescope symbols',
}
}
)

View File

@ -38,7 +38,6 @@ local on_attach = function(client, bufnr)
vim.keymap.set('n', '<space>D', vim.lsp.buf.type_definition, opts)
vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, opts)
vim.keymap.set('n', '<space>r', tele_builtins.lsp_references, opts)
vim.keymap.set('n', '<A-m>', '<cmd>Telescope aerial<cr>', opts)
vim.keymap.set('n', '<space>v', function() tele_builtins.diagnostics({ bufnr = 0 }) end, opts)
vim.keymap.set('n', '<A-o>', '<cmd>ClangdSwitchSourceHeader<CR>', opts)