Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

which key窗口问题 #174

Open
Datebasesystem opened this issue Dec 13, 2024 · 6 comments
Open

which key窗口问题 #174

Datebasesystem opened this issue Dec 13, 2024 · 6 comments
Assignees

Comments

@Datebasesystem
Copy link
Contributor

  • What's your suggestion?
  • 按c 后,which key 给出的快捷键提示是:
image

但是 which-key.lua 中的配置是:

image

感觉是 c 开头的快捷键冲突了。
这里会导致如果 按 c 后,等提出出来后,慢慢按 g,会跳转为:
image

这样 cg 就没办法做分页了。

  • Why is this better?
    c 开头的这个neovim 原始的功能,禁用掉可能会更好。
  • How to implement your ideas?
@Martins3
Copy link
Owner

你的意思是,不要使用 c 开头的快捷键?

@Datebasesystem
Copy link
Contributor Author

Datebasesystem commented Dec 13, 2024

就是有啥办法能让按 c 之后,这个提示是 which-key 中配置的这些吗?比如 g -> vertical split window 这样。

如果把 neovim 自带的 c 开头功能禁掉,是不是能达到这个能力

@Martins3
Copy link
Owner

我理解了,我研究下,应该不难

@Martins3
Copy link
Owner

看了下,不知道咋修复,可能需要仔细看看 which-key.nvim 的实现

@Datebasesystem
Copy link
Contributor Author

最简单的办法是换一个窗口键,which-key 确实不好改

@Martins3
Copy link
Owner

不行的,这个键我已经用习惯了。。。

这个 ticket 先放到这里吧,是一个小问题,但是先降低优先级。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants