Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

which-key breaks `vim.v.count` in visual mode

オープン
#2,047 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
lua
領域
tooling

調査の方向性

指定されたパーサーリストでビジュアルモードのシーケンス v]n2]n を、まず which-key をインストールした状態で、次に which-key なしで再現します。プラグインが vim.v.count にどのような影響を与えるかを理解するため、#2046 の議論とリンク先の which-key issue を読みます。ビジュアルモードのカウントで期待される項目が選択され、which-key の動作を壊さなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

This bug has been reported in which-key here, but that was 2 years ago so it seems unlikely that it will be fixed. Making an issue here for discussion.

Reproduction

  1. Go to this line (currently 901 on master), and put your cursor on the first '. I marked cursor pos with | |
    local parsers = { |'|bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }
  2. Type v]n2]n
    Confirm that 'diff' is selected when in reality 'html' should be selected
  3. To confirm that which-key is the issue, remove the installation lines for only which-key, and do the above steps again

Discussion
While certainly an edge case, this is indeed a bug. #2046 stops which-key from triggering in visual mode to fix this, but I don't think it's a good solution. Open to discussion for better solutions.

主要言語
Lua
スター
31.5k
フォーク
46.6k
平均マージ
2日 16時間
マージ済み PR(30日)
4

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nvim-lua/kickstart.nvim のほかの issue

nvim-lua/kickstart.nvim の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。