LuaLS / LuaLS/lua-language-server
Neovim: using the builtin formatter erases virtual lines
オープン
まだ誰も着手していません。
feat/formatter
- 主要言語
- Lua
- スター
- 4.4k
- フォーク
- 442
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
How are you using the lua-language-server?
NeoVim
Which OS are you using?
Linux
What is the issue affecting?
Formatting
Expected Behaviour
Virtual lines should be preserved. Here is an example (by @whynothugo) with using StyLua as a formatter instead.
Actual Behaviour
Virtual lines get erased. The diagnostics are still there, though. Here is an example of how it looks.
Reproduction steps
- Setup the
nvim-lspconfigandlsp_linesplugins - Make sure you see the virtual lines, then format the code
- Are the virtual lines still there?
Additional Notes
Both examples are demonstrated by using @WhyNotHugo's lsp_lines Neovim plugin. There is a downstream issue.
Log File
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
nvim-lspconfig と lsp_lines プラグインを使用して、一覧にあるフォーマット手順に従い、フォーマット前後の仮想行を比較して問題を再現します。Language Server のフォーマット応答と統合の動作を調査します。フォーマット後も仮想行が保持され、診断が表示されたままになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100