File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ function M.buf_attach(force)
58
58
-- In case it has changed, we update it
59
59
M .config .root_dir = config .get_root_dir ()
60
60
61
- local ok , client_id_or_err = pcall (lsp_start , M .config )
61
+ local ok , client_id_or_err = pcall (vim . lsp . start , M .config )
62
62
if not ok then
63
63
logger .error (string.format (" failed to start LSP client: %s" , client_id_or_err ))
64
64
return
@@ -101,7 +101,7 @@ function M.use_client(callback)
101
101
return
102
102
end
103
103
104
- local client_id , err = vim .lsp .start_client (M .config )
104
+ local client_id , err = vim .lsp .start (M .config )
105
105
106
106
if not client_id then
107
107
logger .error (string.format (" error starting LSP client: %s" , err ))
@@ -370,7 +370,7 @@ function M.add_workspace_folder(folder_path)
370
370
371
371
local client = M .get ()
372
372
if client and client .initialized then
373
- client .notify (" workspace/didChangeWorkspaceFolders" , {
373
+ api .notify (client , " workspace/didChangeWorkspaceFolders" , {
374
374
event = {
375
375
added = { workspace_folder },
376
376
removed = {},
Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ function panel:refresh()
467
467
vim .cmd (" stopinsert" )
468
468
else
469
469
-- assume cursor at end of line
470
- local _ , utf16_index = vim .str_utfindex (self .state .line )
470
+ local _ , utf16_index = vim .str_utfindex (self .state .line , " utf-16 " )
471
471
params .doc .position .character = utf16_index
472
472
params .position .character = params .doc .position .character
473
473
end
You can’t perform that action at this time.
0 commit comments