fix: keybind and telescope ui tweaks
This commit is contained in:
parent
1c5f7f48c7
commit
f38ed78f14
2 changed files with 6 additions and 5 deletions
|
@ -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', '<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', '<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', '<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)
|
||||||
vim.keymap.set('n', '<M-[>', wrap(telescope.lsp_references, theme.get_cursor()), opts) -- fallback for windows
|
|
||||||
vim.keymap.set('n', '<C-;>', telescope.git_bcommits, 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-;>', telescope.git_bcommits, opts) -- fallback for windows
|
||||||
vim.keymap.set('n', '<M-=>', wrap(telescope.registers, theme.get_dropdown()), opts) -- fallback for windows
|
vim.keymap.set('n', '<M-=>', wrap(telescope.registers, theme.get_dropdown()), opts) -- fallback for windows
|
||||||
|
|
|
@ -127,13 +127,15 @@ local init_fn = function(use)
|
||||||
layout_config = {
|
layout_config = {
|
||||||
horizontal = {
|
horizontal = {
|
||||||
preview_width = 0.65,
|
preview_width = 0.65,
|
||||||
results_width = 0.7,
|
results_width = 0.35,
|
||||||
},
|
},
|
||||||
vertical = {
|
vertical = {
|
||||||
mirror = false,
|
mirror = false,
|
||||||
},
|
},
|
||||||
height = 0.9,
|
cursor = {
|
||||||
width = 0.9
|
preview_width = 0.6,
|
||||||
|
results_width = 0.4,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue