fix(vim): Fix config.toml path in readme. Fix replace range rendering. (#617)
* fix(vim): replace range rendering. * fix(vim): fix config.toml path in readme.r0.4
parent
ae6e6bfe37
commit
df83769147
|
|
@ -116,7 +116,7 @@ In insert mode, Tabby plugin will show inline completion automatically when you
|
|||
|
||||
You need to start the Tabby server before using the plugin. For Tabby server installation, please refer to this [documentation](https://tabby.tabbyml.com/docs/installation/).
|
||||
|
||||
If your Tabby server endpoint is different from the default `http://localhost:8080`, please set the endpoint in `~/.tabby-client/config.toml`.
|
||||
If your Tabby server endpoint is different from the default `http://localhost:8080`, please set the endpoint in `~/.tabby-client/agent/config.toml`.
|
||||
|
||||
```toml
|
||||
# Server
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ function! tabby#virtual_text#Render(request, choice)
|
|||
elseif suffix_replace_chars == 1
|
||||
let replace_char = strcharpart(current_line_suffix, 0, 1)
|
||||
let inlay = ''
|
||||
if stridx(text_lines[0], replace_char) != 0
|
||||
if strchars(text_lines[0]) > 0 && stridx(text_lines[0], replace_char) != 0
|
||||
let inlay = split(text_lines[0], replace_char)[0]
|
||||
endif
|
||||
call s:AddInlay(inlay, col('.'))
|
||||
|
|
@ -102,7 +102,7 @@ function! tabby#virtual_text#Render(request, choice)
|
|||
call s:AddInlay(inlay_suffix, col('.') + len(replace_char))
|
||||
endif
|
||||
if len(text_lines) > 1
|
||||
if strchars(current_line_suffix) > 1
|
||||
if strchars(current_line_suffix) > 0
|
||||
let range_start = col('.')
|
||||
if inlay != text_lines[0]
|
||||
let range_start += len(replace_char)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue