Skip to content
Discussion options

You must be logged in to vote

You can define a key for:

  • input
  • list
  • preview

Like this:

win = {
  input = { -- list, preview
    keys = {
      ['<C-e>'] = 'list_scroll_down_1',                          -- normal mode
      ['<C-e>'] = { 'list_scroll_down_1', mode = 'i' },          -- insert mode
      ['<C-e>'] = { 'list_scroll_down_1', mode = { 'i', 'n' } }, -- insert or normal mode

opts = {
  picker = {
    sources = {
      explorer = {
        actions = {
          list_scroll_down_1 = function(picker)
            picker.list:scroll(1, false)
          end,
          list_scroll_up_1 = function(picker)
            picker.list:scroll(-1, false)
          end,
        },
        win = {
          input = {
       …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rudenkornk
Comment options

@drowning-cat
Comment options

Answer selected by rudenkornk
@rudenkornk
Comment options

@drowning-cat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants