llama.vim : fix suffix construction + fix virt text offset
This commit is contained in:
parent
0566c69531
commit
0c649c8967
1 changed files with 2 additions and 1 deletions
|
@ -44,6 +44,7 @@ function! llama#fim() abort
|
||||||
|
|
||||||
let l:suffix = ""
|
let l:suffix = ""
|
||||||
\ . l:line_cur_suffix
|
\ . l:line_cur_suffix
|
||||||
|
\ . "\n"
|
||||||
\ . join(l:lines_suffix, "\n")
|
\ . join(l:lines_suffix, "\n")
|
||||||
\ . "\n"
|
\ . "\n"
|
||||||
|
|
||||||
|
@ -111,7 +112,7 @@ function! llama#fim() abort
|
||||||
|
|
||||||
call nvim_buf_set_extmark(l:bufnr, s:ns_id, l:pos_y - 1, l:pos_x - 1, {
|
call nvim_buf_set_extmark(l:bufnr, s:ns_id, l:pos_y - 1, l:pos_x - 1, {
|
||||||
\ 'virt_text': [[s:content[0], 'llama_hint']],
|
\ 'virt_text': [[s:content[0], 'llama_hint']],
|
||||||
\ 'virt_text_win_col': virtcol('.')
|
\ 'virt_text_win_col': l:pos_x == 1 ? 0 : virtcol('.')
|
||||||
\ })
|
\ })
|
||||||
|
|
||||||
call nvim_buf_set_extmark(l:bufnr, s:ns_id, l:pos_y - 1, 0, {
|
call nvim_buf_set_extmark(l:bufnr, s:ns_id, l:pos_y - 1, 0, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue