mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
feat(fzf-lua): preview keymaps for git (#3904)
## What is this PR for?
It seems that the preview keymaps set right now only support the builtin
previewer.
From searching through `fzf-lua` docs, I found
[here](3b91c1a471/README.md (L634-L638)
)
that additional mappings should be set for the other previewers such as
`git` (otherwise the defaults `<shift-down/up>` could be used).
I chose to use the same mappings for the `fzf` preview keymaps as they
serve the same functionality. Please feel free to change if not to your
liking.
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
## Does this PR fix an existing issue?
Not an issue but a discussion #3895
<!--
If this PR fixes any issues, please link to the issue here.
Fixes #<issue_number>
-->
## Checklist
- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
This commit is contained in:
parent
8ddc6f9e16
commit
d5f3d395f4
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ return {
|
||||||
config.defaults.keymap.fzf["ctrl-u"] = "half-page-up"
|
config.defaults.keymap.fzf["ctrl-u"] = "half-page-up"
|
||||||
config.defaults.keymap.fzf["ctrl-d"] = "half-page-down"
|
config.defaults.keymap.fzf["ctrl-d"] = "half-page-down"
|
||||||
config.defaults.keymap.fzf["ctrl-x"] = "jump"
|
config.defaults.keymap.fzf["ctrl-x"] = "jump"
|
||||||
|
config.defaults.keymap.fzf["ctrl-f"] = "preview-page-down"
|
||||||
|
config.defaults.keymap.fzf["ctrl-b"] = "preview-page-up"
|
||||||
config.defaults.keymap.builtin["<c-f>"] = "preview-page-down"
|
config.defaults.keymap.builtin["<c-f>"] = "preview-page-down"
|
||||||
config.defaults.keymap.builtin["<c-b>"] = "preview-page-up"
|
config.defaults.keymap.builtin["<c-b>"] = "preview-page-up"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue