Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUse status suffix from json.short #305
Conversation
|
Looks good to me and works at my end.
It should do. I'm not too familiar with lightline but you just need to get it to call let g:lightline = {
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'kite', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'kite': 'kite#statusline'
\ },
\ }Alternatively if you're manipulating the status line directly, do |
|
Oh thanks, that works! I might've been testing in a js file without js enabled (oops). |
Addresses kiteco/kiteco#11798 for vim
What was done
We removed model warmup and added a new status for when models are warming up. I considered adding a simple
but this seemed a little more flexible from a future changes standpoint (text is also harder to synchronize between editors if each editor switches off the status response). The endpoint has been returning
{ status, short, long }, whereshortisready | indexing | initializing | ready (no index) | unsupported | disabled, for long while now, so I don't think this would break anything for users not on the most recent version of Kite.Kind of a separate question: does
kite#statusline()integrate with lightline on neovim? Wanted to manually test this, but had some trouble with that, so I ended up just doing some string checking instead.