Async element load for part that will be update later
まだ誰も着手していません。
評価
調査の方向性
Start by examining the dashboard element API and the rendering paths for elements such as the logo and footer. The request mentions vim.api.nvim_buf_set_lines and needs asynchronous updates that preserve the dashboard theme and survive window resizing. Done would be a documented callback or update API, or an example implementation, with the requested element remaining correctly rendered after updates and resizing.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
I'm making a dashboard that will call an LLM to generate some random fact every time i open up nvim, but there doesn't seem to be a way to add a callback for later update. Since waiting for the LLM to response will take about 3-4 seconds and the whole dashboard will be block from loading.
Describe the solution you'd like
An example implementation or an expose api of some kind to update the dashboard asynchronously like logo, footer,...
Additional context
Dashboard with random fact:
Dashboard while loading:
I try to inject asynchronously into the buffer using vim.api.nvim_buf_set_lines but it doesn't follow the theme of the dashboard and the actual fact will disappear for any changes of the window size.
Any suggestion appreciated since i'm still new as this and wonder if this is even possible.
- 主要言語
- Lua
- スター
- 2.9k
- フォーク
- 200
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nvimdev/dashboard-nvim のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
nvimdev/dashboard-nvim#534 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
nvimdev/dashboard-nvim#480 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nvimdev/dashboard-nvim#402 · リアクション 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 38/100
nvimdev/dashboard-nvim#523 · コメント 2 件 · リアクション 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
nvimdev/dashboard-nvim#521 ·
nvimdev/dashboard-nvim の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mogenson/PaperWM.spoon#178 ·
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
luainkernel/lunatik#1876 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
-
bug ready ticket
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Domktorymysli/vclu#5 ·