-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(shell_utils, neovim): universalize all file preview tools ke…
…ymaps
- Loading branch information
1 parent
5b99438
commit 25a124c
Showing
4 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
local M = {} | ||
|
||
M.opts = function(_, opts) | ||
local actions = require("telescope.actions") | ||
|
||
opts.defaults.scroll_strategy = "limit" | ||
opts.extension_list = { "undo" } | ||
opts.defaults.mappings = { | ||
i = { | ||
["<C-f>"] = actions.results_scrolling_down, | ||
["<C-b>"] = actions.results_scrolling_up, | ||
}, | ||
} | ||
end | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[[manager.prepend_keymap]] | ||
on = [ "?" ] | ||
run = "help" | ||
desc = "Show help" | ||
|
||
[[manager.prepend_keymap]] | ||
on = [ "<C-n>" ] | ||
run = "arrow 1" | ||
desc = "Next item" | ||
|
||
[[manager.prepend_keymap]] | ||
on = [ "<C-p>" ] | ||
run = "arrow -1" | ||
desc = "Prev item" | ||
|
||
[[manager.prepend_keymap]] | ||
on = [ "<C-d>" ] | ||
run = "seek 10" | ||
desc = "Scroll content down" | ||
|
||
[[manager.prepend_keymap]] | ||
on = [ "<C-u>" ] | ||
run = "seek -10" | ||
desc = "Scroll content up" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters