YAML treesitter indentation is buggy
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- neovim, yaml
- 領域
- tooling
調査の方向性
まず kickstart.nvim の設定とリンクされている nvim-treesitter の issue を読み、次にレポートの YAML の例を Neovim v0.10.4 で再現します。YAML の Treesitter インデントがどこで設定されているかを特定します。Enter を押して "- " と入力しても不正なリストインデントが生成されなくなり、再現をもう一度確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Before Reporting an Issue
-
I have read the kickstart.nvim README.md.
-
I have read the appropriate plugin's documentation.
-
I have searched that this issue has not been reported before.
-
By checking this, I confirm that the above steps are completed. I understand leaving this unchecked will result in this report being closed immediately.
Describe the bug
The YAML treesitter indentation has an annoying indentation bug. I think it might be helpful to disable treesitter indentation for YAML files until it's resolved.
Here are some relevant discussions about it:
actual issue to follow regarding this bug:
trail of issues that lead me here
- https://github.com/redhat-developer/yaml-language-server/issues/1047
- https://github.com/neovim/neovim/issues/33754
- https://github.com/LazyVim/LazyVim/discussions/602
To Reproduce
- Make the following YAML file:
hello:
- a
world: {}
- Place the cursor at the
|and enter insert mode:
hello:
- a|
world: {}
- Hit "Enter":
hello:
- a
|
world: {}
- Type "- ":
hello:
- a
- |
world: {}
Desktop
- OS: Fedora Linux 41
- Terminal: alacritty 0.15.1 with zellij 0.42.1
Neovim Version
NVIM v0.10.4
Build type: RelWithDebInfo
LuaJIT 2.1.1720049189
- 主要言語
- Lua
- スター
- 31.5k
- フォーク
- 46.5k
- 平均マージ
- 8時間 13分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nvim-lua/kickstart.nvim のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
nvim-lua/kickstart.nvim#2096 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
nvim-lua/kickstart.nvim#2047 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
nvim-lua/kickstart.nvim#1975 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
nvim-lua/kickstart.nvim#1961 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
nvim-lua/kickstart.nvim#1788 · コメント 2 件 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
nvim-lua/kickstart.nvim の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
revisit-at-release statusline
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
neovim/neovim#42188 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Aska] Issueオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
pterodactyl/game-eggs#640 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信