Async element load for part that will be update later
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Lua
- Stars
- 2.9k
- Forks
- 201
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nvimdev/dashboard-nvim
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
nvimdev/dashboard-nvim#534 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
nvimdev/dashboard-nvim#480 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nvimdev/dashboard-nvim#402 · 2 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
nvimdev/dashboard-nvim#523 · 2 comments · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
nvimdev/dashboard-nvim#521 ·
All issues in nvimdev/dashboard-nvim
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
openSUSE/python-rpm-macros#219 ·
-
bug mini.bracketed
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
accessibility bug typst
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
quarto-dev/quarto-cli#14947 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
HenrikBengtsson/CBI-software#134 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
secondlife/slua#96 ·