mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
Prefer native lsp api when in vim. (#1362)
* add g:lsp_experimental_native_lsp flag to enable native vim lsp client * send request and correctly call on_notification * add support for native client in lsp#client#send_notification * Add native lsp client support for lsp#client#send_response * add native notification support * add support for native stop job * handle error response for document_formatting.vim and code_action.vim * add missing return for code action * fix indent * undo code action error * check for a:response to be of type dict as stderr will send string * use out_cb and err_cb instead of channel callback * bump has_native_client version check to 8.2.4780 which fixes LSP parsing messages when partial data is received * rename g:lsp_experimental_native_lsp to g:lsp_use_native_client * fix s:native_err_cb * pass env * disable lsp_use_native_client * add lsp#utils#has_native_lsp_client() * clean up log * handle requests from server * fix lint issues * update docs
This commit is contained in:
@@ -4,6 +4,7 @@ endif
|
||||
let g:lsp_loaded = 1
|
||||
|
||||
let g:lsp_use_lua = get(g:, 'lsp_use_lua', has('nvim-0.4.0') || (has('lua') && has('patch-8.2.0775')))
|
||||
let g:lsp_use_native_client = get(g:, 'lsp_use_native_client', 0)
|
||||
let g:lsp_auto_enable = get(g:, 'lsp_auto_enable', 1)
|
||||
let g:lsp_async_completion = get(g:, 'lsp_async_completion', 0)
|
||||
let g:lsp_log_file = get(g:, 'lsp_log_file', '')
|
||||
|
||||
Reference in New Issue
Block a user