diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-25 10:29:17 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-25 10:29:17 -0400 |
| commit | c58779144f138f97572a51b5f3ecb54f72a86b7a (patch) | |
| tree | 628cef0e928d9cb4dd9a76a32431dc1e6ec3b034 /lua | |
| parent | c3f9b25606cea94bc4af55dbddf7d7d863be4517 (diff) | |
fix: #105
Warn users if they have `report` set to a bad value
In the future, we could try and change it and put it back, but that
feels a bit bad. If anyone can tell me WHY you would want this, then we
can do it.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua index fced93c..c573d5c 100644 --- a/lua/telescope/builtin.lua +++ b/lua/telescope/builtin.lua @@ -17,6 +17,12 @@ if 1 ~= vim.fn.has('nvim-0.5') then return end +if 2 > vim.o.report then + vim.api.nvim_err_writeln(string.format("[telescope] It seems you have `set report=%s`", vim.o.report)) + vim.api.nvim_err_writeln("[telescope] Instead, change 'report' back to its default value. `set report=2`.") + vim.api.nvim_err_writeln("[telescope] If you do not, you will have a bad experience") +end + -- TODO: Give some bonus weight to files we've picked before -- TODO: Give some bonus weight to oldfiles |
