fix: alternate binds too

This commit is contained in:
əlemi 2023-02-01 19:00:23 +01:00
parent c38502f034
commit bcc6e42f4f
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -119,9 +119,10 @@ function KEYBINDS:set_telescope_keys(opts)
-- Symbols with telescope -- Symbols with telescope
vim.keymap.set('n', '<C-\\>', telescope.lsp_document_symbols, opts) vim.keymap.set('n', '<C-\\>', telescope.lsp_document_symbols, opts)
vim.keymap.set('n', '<C-|>', wrap(telescope.lsp_dynamic_workspace_symbols, {layout_strategy = 'vertical'}), opts) vim.keymap.set('n', '<C-|>', wrap(telescope.lsp_dynamic_workspace_symbols, {layout_strategy = 'vertical'}), opts)
vim.keymap.set('n', '<M-|>', wrap(telescope.lsp_dynamic_workspace_symbols, {layout_strategy = 'vertical'}), opts)
-- Resule last -- Resule last
vim.keymap.set('n', '<C-CR>', telescope.resume, opts) vim.keymap.set('n', '<C-CR>', telescope.resume, opts)
vim.keymap.set('n', '<NL>', telescope.resume, opts) -- fallback for windows vim.keymap.set('n', '<M-CR>', telescope.resume, opts)
-- Error list with telescope -- Error list with telescope
vim.keymap.set('n', '<C-PageUp>', wrap(telescope.diagnostics, theme.get_ivy()), opts) vim.keymap.set('n', '<C-PageUp>', wrap(telescope.diagnostics, theme.get_ivy()), opts)
vim.keymap.set('n', '<C-PageDown>', wrap(telescope.diagnostics, theme.get_ivy({bufnr=0})), opts) vim.keymap.set('n', '<C-PageDown>', wrap(telescope.diagnostics, theme.get_ivy({bufnr=0})), opts)