Skip to content

Commit

Permalink
llama.vim : move info to the right of screen [no ci] (ggerganov#9787)
Browse files Browse the repository at this point in the history
'eol' messes up the rendering with nvim v0.10.2 for some reason
  • Loading branch information
ggerganov authored and arthw committed Nov 15, 2024
1 parent 95d19d8 commit 6b997df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/llama.vim
Original file line number Diff line number Diff line change
Expand Up @@ -668,13 +668,14 @@ function! s:fim_on_stdout(job_id, data, event) dict
endif

if g:llama_config.show_info == 1
"" display it in the statusline
" display it in the statusline
let &statusline = l:info
elseif g:llama_config.show_info == 2
" display it to the right of the current line
call nvim_buf_set_extmark(l:bufnr, l:id_vt_info, s:pos_y - 1, s:pos_x - 1, {
\ 'virt_text': [[l:info, 'llama_hl_info']],
\ 'virt_text_pos': 'eol',
"\ 'virt_text_pos': 'eol',
\ 'virt_text_pos': 'right_align',
\ })
endif
endif
Expand Down

0 comments on commit 6b997df

Please sign in to comment.