emacs-lsp / dap-mode

Emacs :heart: Debug Adapter Protocol
https://emacs-lsp.github.io/dap-mode
GNU General Public License v3.0
1.29k stars 181 forks source link

`dap-dlv-go-delve-path` is global #794

Open shackra opened 2 months ago

shackra commented 2 months ago

I've noticed that dap-dlv-go-delve-path is a global customization, if I change its value somewhere it changes everywhere. This breaks workflows for people using Go on a per project basis (say, with nix flake for instance).

Ideally, dap-dlv-go-delve-path should be defined with :local t

yyoncho commented 2 months ago

For that case you should be able to use dir-locals. Try M-x add-dir-local-variable.