diff options
| author | caojoshua <33404808+caojoshua@users.noreply.github.com> | 2021-07-08 01:30:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-08 10:30:44 +0200 |
| commit | d5a8e48aa632508f5d7d6d428244eaf150adad25 (patch) | |
| tree | 7d0e7ccdfb9f4c01713c08e42bcb4a6993076a0f /lua/telescope/deprecated.lua | |
| parent | 38907ce7d74f26d123bfbb8ecf55bc9616b5ece5 (diff) | |
Consistent filepath display and code cleanup. (#839)
BREAKING CHANGE: see :help telescope.changelog-839 for more information
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Diffstat (limited to 'lua/telescope/deprecated.lua')
| -rw-r--r-- | lua/telescope/deprecated.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/telescope/deprecated.lua b/lua/telescope/deprecated.lua index 0d98c1d..ff33a07 100644 --- a/lua/telescope/deprecated.lua +++ b/lua/telescope/deprecated.lua @@ -8,6 +8,20 @@ deprecated.picker_window_options = function(opts) -- Deprecated: PR:922, 2021/06/25 -- Can be removed in a few weeks. + if opts.shorten_path then + table.insert(messages, + "'opts.shorten_path' is no longer valid. Please use 'opts.path_display' instead. " .. + "Please See ':help telescope.changelog-839'" + ) + end + + if opts.hide_filename then + table.insert(messages, + "'opts.hide_filename' is no longer valid. Please use 'opts.path_display' instead. " .. + "Please See ':help telescope.changelog-839'" + ) + end + if opts.width then table.insert(messages, "'opts.width' is no longer valid. Please use 'layout_config.width' instead") end |
