Skip to content

Commit

Permalink
home.vscode: set LAUNCH_EDITOR env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerschtli committed Jul 9, 2023
1 parent 5175acb commit 25d6b63
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions home/programs/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,19 @@ in
pkgs.nixpkgs-fmt
];

home.packages = [
(config.lib.custom.wrapProgram {
inherit (cfg) packages;
name = "code";
source = pkgs.vscode;
path = "/bin/code";
})
];
home = {
packages = [
(config.lib.custom.wrapProgram {
inherit (cfg) packages;
name = "code";
source = pkgs.vscode;
path = "/bin/code";
})
];

# used by svelte inspector via https://github.com/yyx990803/launch-editor
sessionVariables.LAUNCH_EDITOR = "code";
};

};

Expand Down

0 comments on commit 25d6b63

Please sign in to comment.