Add variable ${command:pickFile}

This commit is contained in:
gh-liu 2024-05-30 16:48:06 +08:00 committed by Mathias Fußenegger
parent abb238f631
commit 316f4edd1e
2 changed files with 3 additions and 1 deletions

View file

@ -317,6 +317,7 @@ Things to note:
- `${workspaceFolder}`: The current working directory of Neovim
- `${workspaceFolderBasename}`: The name of the folder opened in Neovim
- `${command:pickProcess}`: Open dialog to pick process using |vim.ui.select|
- `${command:pickFile}`: Open dialog to pick file using |vim.ui.select|
- `${env:Name}`: Environment variable named `Name`, for example: `${env:HOME}`.
==============================================================================

View file

@ -294,7 +294,8 @@ local function eval_option(option)
end
local var_placeholders_once = {
['${command:pickProcess}'] = lazy.utils.pick_process
['${command:pickProcess}'] = lazy.utils.pick_process,
['${command:pickFile}'] = lazy.utils.pick_file,
}
local var_placeholders = {