Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

feat: add keymaps option for scrolling the hover window#189

Open
zuoxinyu wants to merge 1 commit intosimrat39:masterfrom
zuoxinyu:master
Open

feat: add keymaps option for scrolling the hover window#189
zuoxinyu wants to merge 1 commit intosimrat39:masterfrom
zuoxinyu:master

Conversation

@zuoxinyu
Copy link

@zuoxinyu zuoxinyu commented May 4, 2022

Description

Add keymaps for scrolling the hover window without entering it (e.g. by press shift-K twice to enter it), just like the behavior in nvim-cmp. It's disabled by default, cause <c-j>/<c-k> might confilict with users' keymappings.

  • Add an option in the config to enable and custom the keymaps
    -- keymaps for scrolling the hover window
    keymaps = {
      -- enable the keymaps
      -- default: false
      enable = false,
      -- scroll up
      -- default: "<c-j>"
      scroll_up = "<c-j>",
      -- scroll down
      -- default: "<c-k>"
      scroll_down = "<c-k>",
    },
  • Add and expose a method scroll_hover(number) for the hover_actions module.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant