diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-18 09:59:46 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-18 09:59:46 -0400 |
| commit | 492b4f1e95ec98277251f412053bfe2e92ffabb9 (patch) | |
| tree | 5420e792bb6dbcc1495bf2c9b9f6320468f3b9eb /lua | |
| parent | 7b1ebe7fce65761293b82834ff997174cf2baa74 (diff) | |
fix: add timeout param
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 02bc0db..0b9bae4 100644 --- a/lua/telescope/builtin.lua +++ b/lua/telescope/builtin.lua @@ -266,7 +266,7 @@ builtin.lsp_workspace_symbols = function(opts) opts.shorten_path = utils.get_default(opts.shorten_path, true) local params = {query = opts.query or ''} - local results_lsp = vim.lsp.buf_request_sync(0, "workspace/symbol", params, 1000) + local results_lsp = vim.lsp.buf_request_sync(0, "workspace/symbol", params, opts.timeout or 1000) if not results_lsp or vim.tbl_isempty(results_lsp) then print("No results from workspace/symbol") |
