]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama.vim : move info to the right of screen [no ci] (#9787)
authorGeorgi Gerganov <redacted>
Mon, 21 Oct 2024 19:52:22 +0000 (22:52 +0300)
committerGeorgi Gerganov <redacted>
Mon, 21 Oct 2024 19:53:18 +0000 (22:53 +0300)
'eol' messes up the rendering with nvim v0.10.2 for some reason

examples/llama.vim

index e75872cae0e9c50c500ca42196e4f4c4bacd1e28..9af451fbd7de64e480c3f12bb17f41986bec5b94 100644 (file)
@@ -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