Skip to content

Commit

Permalink
Add variable ${command:pickFile}
Browse files Browse the repository at this point in the history
  • Loading branch information
gh-liu authored and mfussenegger committed May 30, 2024
1 parent abb238f commit 316f4ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/dap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}`.

==============================================================================
Expand Down
3 changes: 2 additions & 1 deletion lua/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 316f4ed

Please sign in to comment.