Reliable way to get package installation location #258
-
In order to set up the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey! So the best way to gather the installation location of a package is via dap.adapters.node2 = {
type = 'executable',
command = 'node-debug2-adapter',
args = {},
} |
Beta Was this translation helpful? Give feedback.
Hey! So the best way to gather the installation location of a package is via
Package:get_install_path()
. However, as you mention, you shouldn't really be reaching into packages directly as this is prone to errors. Thenode-debug2-adapter
package will link an executable with the same name, for easy access. If you're using nvim-dap, try something like: