Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/dap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,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|
- `${env:HOME}`: The environment variable value similar to |getenv()|

==============================================================================
DEBUGEE CONFIGURATION via launch.json *dap-launch.json*
Expand Down
1 change: 1 addition & 0 deletions lua/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ local function expand_config_variables(option)
for key, val in pairs(variables) do
ret = ret:gsub('${' .. key .. '}', val)
end
ret = ret:gsub('${env:([%w_]+)}', function(match) return os.getenv(match) or '' end)
for key, fn in pairs(lazy_variables) do
if ret:find(key) then
local val = eval_option(fn)
Expand Down