Async element load for part that will be update later
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Lua
- Stelle
- 2.9k
- Fork
- 200
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nvimdev/dashboard-nvim
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
nvimdev/dashboard-nvim#534 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
nvimdev/dashboard-nvim#480 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nvimdev/dashboard-nvim#402 · 2 reazioni ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 38/100
nvimdev/dashboard-nvim#523 · 2 commenti · 3 reazioni ·
-
DbProjectDelete don't workAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
nvimdev/dashboard-nvim#521 ·
Tutte le issue di nvimdev/dashboard-nvim
Issue simili
-
bug
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
bradcypert/plum#265 ·
I maintainer di solito rispondono entro 1 giorno
-
Lasso not PastingApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
code:todo
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
koreader/koreader#16221 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ibhagwan/fzf-lua#2828 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno