switch vscode package to vscode-fhs
This commit is contained in:
parent
a63e7b1efd
commit
3c2130b13c
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
let mapPrefixToSet = prefix: set:
|
let mapPrefixToSet = prefix: set:
|
||||||
with lib; attrsets.mapAttrs' (k: v: attrsets.nameValuePair ("${prefix}.${k}") v) set;
|
with lib; attrsets.mapAttrs' (k: v: attrsets.nameValuePair ("${prefix}.${k}") v) set;
|
||||||
|
@ -11,7 +11,46 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# package = pkgs.vscodium;
|
# package = pkgs.vscodium;
|
||||||
# package = pkgs.vscode-fhsWithPackages (ps: with ps; [rustup zlib]);
|
package = pkgs.vscode-fhsWithPackages (ps: with ps; [
|
||||||
|
# rustup
|
||||||
|
# zlib
|
||||||
|
asciidoc
|
||||||
|
asciidoctor
|
||||||
|
cabal2nix
|
||||||
|
clang
|
||||||
|
dart
|
||||||
|
dotnet-sdk
|
||||||
|
dotnet-sdk_3
|
||||||
|
dotnet-sdk_5
|
||||||
|
dotnetPackages.Nuget
|
||||||
|
elm2nix
|
||||||
|
elmPackages.elm
|
||||||
|
flutter
|
||||||
|
gcc
|
||||||
|
ghc
|
||||||
|
ghcid
|
||||||
|
haskellPackages.Cabal_3_6_3_0
|
||||||
|
maven
|
||||||
|
nixfmt
|
||||||
|
nixpkgs-fmt
|
||||||
|
# nixpkgs-hammering
|
||||||
|
nodePackages.node2nix
|
||||||
|
nodePackages.npm
|
||||||
|
nodePackages.sass
|
||||||
|
nodePackages.typescript
|
||||||
|
nodePackages.yarn
|
||||||
|
nodejs
|
||||||
|
plantuml
|
||||||
|
python3
|
||||||
|
rustc
|
||||||
|
rustup
|
||||||
|
sqlcheck
|
||||||
|
sqlint
|
||||||
|
sqlite
|
||||||
|
sqlite-web
|
||||||
|
xmlformat
|
||||||
|
xmlstarlet
|
||||||
|
]);
|
||||||
# package = pkgs.vscode-fhs;
|
# package = pkgs.vscode-fhs;
|
||||||
|
|
||||||
userSettings = let
|
userSettings = let
|
||||||
|
@ -93,17 +132,17 @@ in
|
||||||
|
|
||||||
java = mapPrefixToSet "java" {
|
java = mapPrefixToSet "java" {
|
||||||
"configuration.checkProjectSettingsExclusions" = false;
|
"configuration.checkProjectSettingsExclusions" = false;
|
||||||
"test.report.showAfterExecution" = "always";
|
# "test.report.showAfterExecution" = "always";
|
||||||
"test.report.position" = "currentView";
|
# "test.report.position" = "currentView";
|
||||||
"refactor.renameFromFileExplorer" = "preview";
|
"refactor.renameFromFileExplorer" = "preview";
|
||||||
};
|
};
|
||||||
|
|
||||||
sync = mapPrefixToSet "sync" {
|
# sync = mapPrefixToSet "sync" {
|
||||||
autoUpload = true;
|
# autoUpload = true;
|
||||||
autoDownload = true;
|
# autoDownload = true;
|
||||||
quietSync = true;
|
# quietSync = true;
|
||||||
gist = "86e19852a95d31a278ad1a516b40556b";
|
# gist = "86e19852a95d31a278ad1a516b40556b";
|
||||||
};
|
# };
|
||||||
|
|
||||||
svg = mapPrefixToSet "svgviewer" {
|
svg = mapPrefixToSet "svgviewer" {
|
||||||
transparencygrid = true;
|
transparencygrid = true;
|
||||||
|
@ -143,7 +182,7 @@ in
|
||||||
java //
|
java //
|
||||||
python //
|
python //
|
||||||
svg //
|
svg //
|
||||||
sync //
|
# sync //
|
||||||
workbench //
|
workbench //
|
||||||
vim // # This needs to come after workbench because of setting ordering
|
vim // # This needs to come after workbench because of setting ordering
|
||||||
zen //
|
zen //
|
||||||
|
@ -183,8 +222,8 @@ in
|
||||||
];
|
];
|
||||||
"docker.showStartPage" = false;
|
"docker.showStartPage" = false;
|
||||||
|
|
||||||
"errorLens.errorColor" = "rgba(240,0,0,0.1)";
|
"errorLens.errorBackground" = "rgba(240,0,0,0.1)";
|
||||||
"errorLens.warningColor" = "rgba(180,180,0,0.1)";
|
"errorLens.warningBackground" = "rgba(180,180,0,0.1)";
|
||||||
|
|
||||||
"jupyter.askForKernelRestart" = false;
|
"jupyter.askForKernelRestart" = false;
|
||||||
|
|
||||||
|
@ -205,17 +244,17 @@ in
|
||||||
|
|
||||||
"redhat.telemetry.enabled" = false;
|
"redhat.telemetry.enabled" = false;
|
||||||
|
|
||||||
"sonarlint.rules" = {
|
# "sonarlint.rules" = {
|
||||||
"java:S3358" = {
|
# "java:S3358" = {
|
||||||
"level" = "off";
|
# "level" = "off";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
# Language overrides
|
# Language overrides
|
||||||
|
|
||||||
"dart.previewFlutterUiGuides" = true;
|
"dart.previewFlutterUiGuides" = true;
|
||||||
"dart.previewFlutterUiGuidesCustomTracking" = true;
|
"dart.previewFlutterUiGuidesCustomTracking" = true;
|
||||||
"dart.previewLsp" = true;
|
# "dart.previewLsp" = true;
|
||||||
|
|
||||||
"[dart]" = {
|
"[dart]" = {
|
||||||
"editor.defaultFormatter" = "Dart-Code.dart-code";
|
"editor.defaultFormatter" = "Dart-Code.dart-code";
|
||||||
|
@ -223,7 +262,7 @@ in
|
||||||
|
|
||||||
"[html]" = {
|
"[html]" = {
|
||||||
"editor.formatOnSave" = false;
|
"editor.formatOnSave" = false;
|
||||||
"editor.defaultFormatter" = "lonefy.vscode-JS-CSS-HTML-formatter";
|
"editor.defaultFormatter" = "vscode.html-language-features";
|
||||||
};
|
};
|
||||||
|
|
||||||
"[javascript]" = {
|
"[javascript]" = {
|
||||||
|
@ -233,6 +272,7 @@ in
|
||||||
|
|
||||||
"[json]" = {
|
"[json]" = {
|
||||||
"editor.formatOnSave" = true;
|
"editor.formatOnSave" = true;
|
||||||
|
"editor.defaultFormatter" = "vscode.json-language-features";
|
||||||
};
|
};
|
||||||
|
|
||||||
"[jsonc]" = {
|
"[jsonc]" = {
|
||||||
|
@ -303,36 +343,40 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions = with pkgs.vscode-extensions; [
|
||||||
vs-liveshare
|
|
||||||
# ms-vsliveshare.vsliveshare
|
|
||||||
redhat.java
|
|
||||||
wholroyd.jinja
|
|
||||||
bbenoist.nix
|
|
||||||
# jock.svg
|
|
||||||
vscodevim.vim
|
|
||||||
haskell.haskell
|
|
||||||
justusadam.language-haskell
|
|
||||||
naumovs.color-highlight
|
|
||||||
# eamodio.gitlens
|
|
||||||
ms-python.python
|
|
||||||
mikestead.dotenv
|
|
||||||
redhat.vscode-yaml
|
|
||||||
# ms-toolsai.jupyter
|
|
||||||
# dotjoshjohnson.xml
|
|
||||||
usernamehw.errorlens
|
|
||||||
ibm.output-colorizer
|
|
||||||
gruntfuggly.todo-tree
|
|
||||||
mechatroner.rainbow-csv
|
|
||||||
ms-python.vscode-pylance
|
|
||||||
james-yu.latex-workshop
|
|
||||||
elmtooling.elm-ls-vscode
|
|
||||||
# WakaTime.vscode-wakatime
|
# WakaTime.vscode-wakatime
|
||||||
yzhang.markdown-all-in-one
|
# dotjoshjohnson.xml
|
||||||
pkief.material-icon-theme
|
# eamodio.gitlens
|
||||||
# ms-vscode-remote.remote-ssh
|
# jock.svg
|
||||||
# ms-azuretools.vscode-docker
|
# ms-azuretools.vscode-docker
|
||||||
justusadam.language-haskell
|
# ms-toolsai.jupyter
|
||||||
|
# ms-vscode-remote.remote-ssh
|
||||||
|
# ms-vsliveshare.vsliveshare
|
||||||
|
asciidoctor.asciidoctor-vscode
|
||||||
|
bbenoist.nix
|
||||||
coenraads.bracket-pair-colorizer-2
|
coenraads.bracket-pair-colorizer-2
|
||||||
|
dotjoshjohnson.xml
|
||||||
|
elmtooling.elm-ls-vscode
|
||||||
|
gruntfuggly.todo-tree
|
||||||
|
haskell.haskell
|
||||||
|
ibm.output-colorizer
|
||||||
|
james-yu.latex-workshop
|
||||||
|
justusadam.language-haskell
|
||||||
|
justusadam.language-haskell
|
||||||
|
mechatroner.rainbow-csv
|
||||||
|
mhutchie.git-graph
|
||||||
|
mikestead.dotenv
|
||||||
|
ms-python.python
|
||||||
|
ms-python.vscode-pylance
|
||||||
|
naumovs.color-highlight
|
||||||
|
pkief.material-icon-theme
|
||||||
|
redhat.java
|
||||||
|
redhat.vscode-yaml
|
||||||
|
shardulm94.trailing-spaces
|
||||||
|
usernamehw.errorlens
|
||||||
|
vs-liveshare
|
||||||
|
vscodevim.vim
|
||||||
|
wholroyd.jinja
|
||||||
|
yzhang.markdown-all-in-one
|
||||||
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
{
|
{
|
||||||
name = "path-intellisense";
|
name = "path-intellisense";
|
||||||
|
@ -340,24 +384,12 @@ in
|
||||||
version = "2.4.2";
|
version = "2.4.2";
|
||||||
sha256 = "1a4d1n4jpdlx4r2majirnhnwlj34jc94wzbxdrih615176hadxvc";
|
sha256 = "1a4d1n4jpdlx4r2majirnhnwlj34jc94wzbxdrih615176hadxvc";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "xml";
|
|
||||||
publisher = "DotJoshJohnson";
|
|
||||||
version = "2.5.1";
|
|
||||||
sha256 = "1v4x6yhzny1f8f4jzm4g7vqmqg5bqchyx4n25mkgvw2xp6yls037";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
name = "vscode-html-css";
|
name = "vscode-html-css";
|
||||||
publisher = "ecmel";
|
publisher = "ecmel";
|
||||||
version = "1.10.2";
|
version = "1.10.2";
|
||||||
sha256 = "0qzh7fwgadcahxx8hz1sbfz9lzi81iv4xiidvfm3sahyl9s6pyg1";
|
sha256 = "0qzh7fwgadcahxx8hz1sbfz9lzi81iv4xiidvfm3sahyl9s6pyg1";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "elm-ls-vscode";
|
|
||||||
publisher = "elmTooling";
|
|
||||||
version = "2.3.0";
|
|
||||||
sha256 = "1nxl3im5aqiggjx0va64bpjrwshb6fzxan78fqzs68iwn16vsa0b";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
name = "vscode-drawio";
|
name = "vscode-drawio";
|
||||||
publisher = "hediet";
|
publisher = "hediet";
|
||||||
|
@ -412,12 +444,6 @@ in
|
||||||
version = "1.1.29";
|
version = "1.1.29";
|
||||||
sha256 = "1x3k8pmzp186bcgga3wg6y86waxrcsi5cnwaxfmifqgn87jp2vqq";
|
sha256 = "1x3k8pmzp186bcgga3wg6y86waxrcsi5cnwaxfmifqgn87jp2vqq";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "trailing-spaces";
|
|
||||||
publisher = "shardulm94";
|
|
||||||
version = "0.3.1";
|
|
||||||
sha256 = "0h30zmg5rq7cv7kjdr5yzqkkc1bs20d72yz9rjqag32gwf46s8b8";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
name = "comment-divider";
|
name = "comment-divider";
|
||||||
publisher = "stackbreak";
|
publisher = "stackbreak";
|
||||||
|
@ -430,12 +456,6 @@ in
|
||||||
version = "1.3.0";
|
version = "1.3.0";
|
||||||
sha256 = "03jas413ivahfpxrlc5qif35nd67m1nmwx8p8dj1fpv04s6fdigb";
|
sha256 = "03jas413ivahfpxrlc5qif35nd67m1nmwx8p8dj1fpv04s6fdigb";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "asciidoctor-vscode";
|
|
||||||
publisher = "asciidoctor";
|
|
||||||
version = "2.8.10";
|
|
||||||
sha256 = "1n293nsaid9c4lsfn5ns4899yay9vckfk7ld3l2cnd29s82d316i";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
name = "vscode-svgviewer";
|
name = "vscode-svgviewer";
|
||||||
publisher = "cssho";
|
publisher = "cssho";
|
||||||
|
@ -496,12 +516,6 @@ in
|
||||||
version = "0.2.3";
|
version = "0.2.3";
|
||||||
sha256 = "06vivclp58wzmqcx6s6pl8ndqina7p995dr59aj9fk65xihkaagy";
|
sha256 = "06vivclp58wzmqcx6s6pl8ndqina7p995dr59aj9fk65xihkaagy";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "git-graph";
|
|
||||||
publisher = "mhutchie";
|
|
||||||
version = "1.30.0";
|
|
||||||
sha256 = "000zhgzijf3h6abhv4p3cz99ykj6489wfn81j0s691prr8q9lxxh";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
name = "test-adapter-converter";
|
name = "test-adapter-converter";
|
||||||
publisher = "ms-vscode";
|
publisher = "ms-vscode";
|
||||||
|
@ -580,6 +594,12 @@ in
|
||||||
version = "3.4.0";
|
version = "3.4.0";
|
||||||
sha256 = "0ihfrsg2sc8d441a2lkc453zbw1jcpadmmkbkaf42x9b9cipd5qb";
|
sha256 = "0ihfrsg2sc8d441a2lkc453zbw1jcpadmmkbkaf42x9b9cipd5qb";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "keyboard-quickfix";
|
||||||
|
publisher = "pascalsenn";
|
||||||
|
version = "0.0.6";
|
||||||
|
sha256 = "BK7ND6gtRVEitxaokJHmQ5rvSOgssVz+s9dktGQnY6M=";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue