fix: keybind and telescope ui tweaks

This commit is contained in:
əlemi 2022-10-01 17:38:27 +02:00
parent 1c5f7f48c7
commit f38ed78f14
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 6 additions and 5 deletions

View file

@ -104,8 +104,7 @@ function KEYBINDS:set_telescope_keys(opts)
vim.keymap.set('n', '<M-f>', telescope.find_files, opts) -- fallback for windows
vim.keymap.set('n', '<C-,>', wrap(telescope.live_grep, {layout_strategy = 'vertical'}), opts)
vim.keymap.set('n', '<M-,>', wrap(telescope.live_grep, {layout_strategy = 'vertical'}), opts) -- fallback for windows
vim.keymap.set('n', '<C-[>', wrap(telescope.lsp_references, theme.get_cursor()), opts)
vim.keymap.set('n', '<M-[>', wrap(telescope.lsp_references, theme.get_cursor()), opts) -- fallback for windows
vim.keymap.set('n', '<M-]>', wrap(telescope.lsp_references, theme.get_cursor()), opts)
vim.keymap.set('n', '<C-;>', telescope.git_bcommits, opts)
vim.keymap.set('n', '<M-;>', telescope.git_bcommits, opts) -- fallback for windows
vim.keymap.set('n', '<M-=>', wrap(telescope.registers, theme.get_dropdown()), opts) -- fallback for windows

View file

@ -127,13 +127,15 @@ local init_fn = function(use)
layout_config = {
horizontal = {
preview_width = 0.65,
results_width = 0.7,
results_width = 0.35,
},
vertical = {
mirror = false,
},
height = 0.9,
width = 0.9
cursor = {
preview_width = 0.6,
results_width = 0.4,
}
},
}
})