forked from Shinonome/fred-neovim
Added node support
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{pkgs, ...}: {
|
||||
plugins = {
|
||||
dap = {
|
||||
enable = true;
|
||||
adapters.servers = {
|
||||
"pwa-node" = {
|
||||
host = "localhost";
|
||||
port = 8123;
|
||||
executable = {
|
||||
command = "${pkgs.vscode-js-debug}/bin/js-debug";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
extraConfigLua = ''
|
||||
require("dap").configurations.javascript = {
|
||||
{
|
||||
type = "pwa-node",
|
||||
request = "launch",
|
||||
name = "Launch file",
|
||||
program = "''${file}",
|
||||
cwd = "''${workspaceFolder}",
|
||||
},
|
||||
}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user