Implemented word correction in cases where startcol was corrected by … (#1340)

* Implemented word correction in cases where startcol was corrected by TextEdit.range.start.character

* Don't touch abbr

* Don't use `..`

* relax get_server_info

* Improve for deno lsp item

* Fix start character

* minimal `insertReplaceTextEdit` suppoort.

* Change to filter logic similar to asyncomplete-lsp.vim

* Improve word creation

* relax lsp#utils#text_edit#get_range

* Add start_character for test case
This commit is contained in:
hrsh7th
2022-07-22 11:19:16 +09:00
committed by GitHub
parent 9a510cd419
commit 771755300a
5 changed files with 88 additions and 42 deletions

View File

@@ -95,7 +95,7 @@ function! lsp#get_server_names() abort
endfunction
function! lsp#get_server_info(server_name) abort
return s:servers[a:server_name]['server_info']
return get(get(s:servers, a:server_name, {}), 'server_info', {})
endfunction
function! lsp#get_server_root_uri(server_name) abort