Skip to content

Commit 55450b3

Browse files
ggerganovdsx1986
authored andcommitted
llama.vim : move info to the right of screen [no ci] (ggml-org#9787)
'eol' messes up the rendering with nvim v0.10.2 for some reason
1 parent c3b7317 commit 55450b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/llama.vim

+3-2
Original file line numberDiff line numberDiff line change
@@ -668,13 +668,14 @@ function! s:fim_on_stdout(job_id, data, event) dict
668668
endif
669669

670670
if g:llama_config.show_info == 1
671-
"" display it in the statusline
671+
" display it in the statusline
672672
let &statusline = l:info
673673
elseif g:llama_config.show_info == 2
674674
" display it to the right of the current line
675675
call nvim_buf_set_extmark(l:bufnr, l:id_vt_info, s:pos_y - 1, s:pos_x - 1, {
676676
\ 'virt_text': [[l:info, 'llama_hl_info']],
677-
\ 'virt_text_pos': 'eol',
677+
"\ 'virt_text_pos': 'eol',
678+
\ 'virt_text_pos': 'right_align',
678679
\ })
679680
endif
680681
endif

0 commit comments

Comments
 (0)