mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-14 23:09:53 +00:00
llama.vim : move info to the right of screen [no ci] (#9787)
'eol' messes up the rendering with nvim v0.10.2 for some reason
This commit is contained in:
parent
994cfb1acb
commit
e01c67affe
@ -668,13 +668,14 @@ function! s:fim_on_stdout(job_id, data, event) dict
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if g:llama_config.show_info == 1
|
if g:llama_config.show_info == 1
|
||||||
"" display it in the statusline
|
" display it in the statusline
|
||||||
let &statusline = l:info
|
let &statusline = l:info
|
||||||
elseif g:llama_config.show_info == 2
|
elseif g:llama_config.show_info == 2
|
||||||
" display it to the right of the current line
|
" 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, {
|
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': [[l:info, 'llama_hl_info']],
|
||||||
\ 'virt_text_pos': 'eol',
|
"\ 'virt_text_pos': 'eol',
|
||||||
|
\ 'virt_text_pos': 'right_align',
|
||||||
\ })
|
\ })
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user