diff options
| author | Patrick Ziegler <p.ziegler96@gmail.com> | 2021-10-09 15:40:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-09 15:40:08 +0200 |
| commit | ba41f0eeb13796c26f6c5f3e8c44b2397a466e39 (patch) | |
| tree | 10b244a3a21610ea56c717ecc7146e3e64a54fd1 /lua/telescope/builtin/init.lua | |
| parent | 603f55dedf16985205918ea5da4293d5b5dce763 (diff) | |
fix: alias cwd_only and only_cwd option for buffers and oldfiles (#1316)
* Alias cwd_only and only_cwd option for builtins
Fixes #1199
Closes #1275
Diffstat (limited to 'lua/telescope/builtin/init.lua')
| -rw-r--r-- | lua/telescope/builtin/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/telescope/builtin/init.lua b/lua/telescope/builtin/init.lua index 0a76074..343c1a0 100644 --- a/lua/telescope/builtin/init.lua +++ b/lua/telescope/builtin/init.lua @@ -262,6 +262,7 @@ builtin.loclist = require_on_exported_call("telescope.builtin.internal").loclist --- Lists previously open files, opens on `<cr>` ---@param opts table: options to pass to the picker ---@field only_cwd boolean: show only files in the cwd (default: false) +---@field cwd_only boolean: alias for only_cwd builtin.oldfiles = require_on_exported_call("telescope.builtin.internal").oldfiles --- Lists commands that were executed recently, and reruns them on `<cr>` @@ -302,6 +303,7 @@ builtin.reloader = require_on_exported_call("telescope.builtin.internal").reload ---@field show_all_buffers boolean: if true, show all buffers, including unloaded buffers (default: true) ---@field ignore_current_buffer boolean: if true, don't show the current buffer in the list (default: false) ---@field only_cwd boolean: if true, only show buffers in the current working directory (default: false) +---@field cwd_only boolean: alias for only_cwd ---@field sort_lastused boolean: Sorts current and last buffer to the top and selects the lastused (default: false) ---@field sort_mru boolean: Sorts all buffers after most recent used. Not just the current and last one (default: false) ---@field bufnr_width number: Defines the width of the buffer numbers in front of the filenames (default: dynamic) |
