chore: deprecation notice for builtin.file_browser (#1574)

`builtin.file_browser` will be removed in favor of `telescope-file-browser.nvim`.
Primary rationale for carving out the file browser to an extension:
- Faster development
- Very expansive picker with larger feature set than builtins
This commit is contained in:
fdschmidt93
2021-12-29 13:10:40 +01:00
committed by GitHub
parent 9d0034df79
commit 1d1da664eb
2 changed files with 4 additions and 0 deletions

View File

@@ -284,6 +284,9 @@ local function prepare_match(entry, kind)
end end
files.file_browser = function(opts) files.file_browser = function(opts)
vim.api.nvim_err_writeln [[Deprecation notice: file browser will be carved out into a more featureful extension, see:
https://github.com/nvim-telescope/telescope-file-browser.nvim]]
opts = opts or {} opts = opts or {}
local is_dir = function(value) local is_dir = function(value)

View File

@@ -94,6 +94,7 @@ builtin.fd = builtin.find_files
--- - Note: you can create files nested into several directories with `<C-e>`, i.e. `lua/telescope/init.lua` would --- - Note: you can create files nested into several directories with `<C-e>`, i.e. `lua/telescope/init.lua` would
--- create the file `init.lua` inside of `lua/telescope` and will create the necessary folders (similar to how --- create the file `init.lua` inside of `lua/telescope` and will create the necessary folders (similar to how
--- `mkdir -p` would work) if they do not already exist --- `mkdir -p` would work) if they do not already exist
---@deprecated Please move to https://github.com/nvim-telescope/telescope-file-browser.nvim
---@param opts table: options to pass to the picker ---@param opts table: options to pass to the picker
---@field cwd string: root dir to browse from (default: cwd, use utils.buffer_dir() to search relative to open buffer) ---@field cwd string: root dir to browse from (default: cwd, use utils.buffer_dir() to search relative to open buffer)
---@field depth number: file tree depth to display (default: 1) ---@field depth number: file tree depth to display (default: 1)