diff options
| author | Senghan Bright <senghan.bright@deltaprojects.com> | 2020-11-15 21:54:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-15 15:54:16 -0500 |
| commit | ad7280e0b99ecd9f78ac6c70b4e5b49ed5e632f8 (patch) | |
| tree | 6557a41b02078b112e1508262eb20c7004bdab5e /lua | |
| parent | 0ccd69f5a9ab2e17e580a08983969f9d1ed5890b (diff) | |
fix: use vim.lsp.diagnostic instead of deprecated util function. (#244)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua index 73cf9e8..c792f54 100644 --- a/lua/telescope/builtin.lua +++ b/lua/telescope/builtin.lua @@ -212,7 +212,7 @@ builtin.lsp_code_actions = function(opts) local params = vim.lsp.util.make_range_params() params.context = { - diagnostics = vim.lsp.util.get_line_diagnostics() + diagnostics = vim.lsp.diagnostic.get_line_diagnostics() } local results_lsp, err = vim.lsp.buf_request_sync(0, "textDocument/codeAction", params, opts.timeout or 10000) |
