Allow users to pass .env files to debug config #115
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NeonXP/nvim-dap-go!115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "theoribeiro/main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds a feature that has been very useful to me and is available in a very similar way in VSCode.
Description
With the Go plugin in VSCode you can pass an argument called
envFileto pass a .env file to delve. The Delve adapter In reality doesn't have this feature, so the extension is reading the .env file and setting up variables to pass as theenvargument, which Delve supports.This PR emulates the same behavior by reading the
envFileargument and enriching theenvconfig parameter before passing it on to nvim-dap.@leoluz does anything block this PR? might remove lots of code from config that everyone adds nowadays to support env files
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.