mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user