Skip to content

Commit b7a458d

Browse files
authored
feat(fzf-lua): add key mappings similar to telescope (#1343)
feat(fzf-lua): add mappings similar to telescope
1 parent e6bd16b commit b7a458d

File tree

1 file changed

+16
-1
lines changed
  • lua/astrocommunity/fuzzy-finder/fzf-lua

1 file changed

+16
-1
lines changed

lua/astrocommunity/fuzzy-finder/fzf-lua/init.lua

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,20 @@ return {
6363
end,
6464
},
6565
},
66-
opts = { "default-title" },
66+
opts = {
67+
"default-title",
68+
keymap = {
69+
builtin = {
70+
true,
71+
["<C-d>"] = "preview-page-down",
72+
["<C-u>"] = "preview-page-up",
73+
},
74+
fzf = {
75+
true,
76+
["ctrl-d"] = "preview-page-down",
77+
["ctrl-u"] = "preview-page-up",
78+
["ctrl-q"] = "select-all+accept",
79+
},
80+
},
81+
},
6782
}

0 commit comments

Comments
 (0)