-
Notifications
You must be signed in to change notification settings - Fork 59
fix deprecation warnings #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,7 @@ M.start_client = function(command, notification_methods, workspace_folders) | |
| config.workspace_folders = workspace_folders | ||
| end | ||
|
|
||
| local id = vim.lsp.start_client(config) | ||
| local id = vim.lsp.start(config) | ||
| return id | ||
| end | ||
|
|
||
|
|
@@ -57,7 +57,7 @@ M.notify = function(client_id, method, params) | |
| return | ||
| end | ||
|
|
||
| client.notify(method, params) | ||
| client:notify(method, params) | ||
| end | ||
|
|
||
| -- Send a lsp request | ||
|
|
@@ -68,7 +68,7 @@ M.request = function(client_id, method, params) | |
| return | ||
| end | ||
|
|
||
| local _, id = client.request(method, params, function(err, result) | ||
| local _, id = client:request(method, params, function(err, result) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, 🤖 React with 👍 or 👎 to let us know if the comment was useful. |
||
| vim.call('augment#client#NvimResponse', method, params, result, err) | ||
| end) | ||
| return id | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching to
client:notify(...)will pass the client table as the first argument, but Neovim’s LSP clientclient.notifyis typically called with dot notation (client.notify(method, params)) and does not expectself; this can shift arguments and break the call. Consider keeping the dot call here.🤖 React with 👍 or 👎 to let us know if the comment was useful.