2024-11-10 11:32:54 -08:00
|
|
|
{ pkgs, ... }:
|
2024-08-16 19:21:56 -07:00
|
|
|
|
|
|
|
let
|
|
|
|
myExtensions = with pkgs.vscode-extensions; [
|
|
|
|
asvetliakov.vscode-neovim
|
|
|
|
baccata.scaladex-search
|
2024-11-13 22:37:45 -08:00
|
|
|
charliermarsh.ruff
|
2024-08-16 19:21:56 -07:00
|
|
|
davidanson.vscode-markdownlint
|
|
|
|
enkia.tokyo-night
|
|
|
|
github.copilot
|
|
|
|
github.copilot-chat
|
|
|
|
github.github-vscode-theme
|
|
|
|
github.vscode-github-actions
|
|
|
|
github.vscode-pull-request-github
|
|
|
|
humao.rest-client
|
|
|
|
jnoortheen.nix-ide
|
2024-10-26 14:38:40 -07:00
|
|
|
marp-team.marp-vscode
|
2024-08-16 19:21:56 -07:00
|
|
|
mechatroner.rainbow-csv
|
|
|
|
mkhl.direnv
|
2024-11-13 22:37:45 -08:00
|
|
|
ms-python.debugpy
|
2024-08-16 19:21:56 -07:00
|
|
|
ms-python.python
|
|
|
|
ms-python.vscode-pylance
|
2024-11-13 22:37:45 -08:00
|
|
|
ms-toolsai.jupyter
|
|
|
|
ms-toolsai.jupyter-keymap
|
|
|
|
ms-toolsai.jupyter-renderers
|
|
|
|
ms-toolsai.vscode-jupyter-cell-tags
|
|
|
|
ms-toolsai.vscode-jupyter-slideshow
|
2024-08-16 19:21:56 -07:00
|
|
|
ms-vscode.makefile-tools
|
|
|
|
ms-toolsai.jupyter
|
|
|
|
redhat.java
|
|
|
|
redhat.vscode-yaml
|
|
|
|
rust-lang.rust-analyzer
|
|
|
|
scalameta.metals
|
|
|
|
skyapps.fish-vscode
|
2024-08-25 21:31:18 -07:00
|
|
|
sswg.swift-lang
|
2024-08-16 19:21:56 -07:00
|
|
|
svsool.markdown-memo
|
|
|
|
timonwong.shellcheck
|
|
|
|
usernamehw.errorlens
|
|
|
|
visualstudioexptteam.vscodeintellicode
|
2024-11-13 22:37:45 -08:00
|
|
|
visualjj.visualjj
|
2024-08-16 19:21:56 -07:00
|
|
|
vscode-icons-team.vscode-icons
|
|
|
|
vscjava.vscode-java-pack
|
|
|
|
xyz.local-history
|
|
|
|
yzhang.markdown-all-in-one
|
|
|
|
];
|
|
|
|
myUserSettings = {
|
|
|
|
"editor.fontFamily" = "SF Mono";
|
2024-08-25 21:31:18 -07:00
|
|
|
"editor.fontLigatures" = true;
|
2024-08-16 19:21:56 -07:00
|
|
|
"editor.fontSize" = 13;
|
|
|
|
"editor.copyWithSyntaxHighlighting" = true;
|
|
|
|
"extensions.experimental.affinity" = {
|
|
|
|
"asvetliakov.vscode-neovim" = 1;
|
|
|
|
};
|
2024-11-13 22:37:45 -08:00
|
|
|
"extensions.ignoreRecommendations" = true;
|
2024-08-16 19:21:56 -07:00
|
|
|
"files.autoSave" = "afterDelay";
|
2024-11-13 22:37:45 -08:00
|
|
|
"git.confirmSync" = true;
|
2024-08-16 19:21:56 -07:00
|
|
|
"git.rebaseWhenSync" = true;
|
|
|
|
"github.gitProtocol" = "ssh";
|
|
|
|
"githubPullRequests.notifications" = "pullRequests";
|
|
|
|
"githubPullRequests.pullBranch" = "never";
|
|
|
|
"markdown.extension.preview.autoShowPreviewToSide" = true;
|
2024-11-13 22:37:45 -08:00
|
|
|
"notebook.formatOnSave" = true;
|
|
|
|
"notebook.codeActionsOnSave" = {
|
|
|
|
"notebook.source.fixAll" = true;
|
|
|
|
"notebook.source.organizeImports" = true;
|
|
|
|
};
|
2024-08-16 19:21:56 -07:00
|
|
|
# Install paste image manually as not in nix ( https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image )
|
|
|
|
"pasteImage.insertPattern" = "![[\${imageFileName}]]";
|
|
|
|
"pasteImage.path" = "\${projectRoot}/Attachments";
|
|
|
|
"python.analysis.extraPaths" = [ "src" ];
|
2024-11-13 22:37:45 -08:00
|
|
|
"python.analysis.autoFormatStrings" = true;
|
|
|
|
"python.analysis.autoImportCompletions" = true;
|
|
|
|
"python.analysis.completeFunctionParens" = true;
|
|
|
|
"python.analysis.inlayHints.pytestParameters" = true;
|
|
|
|
"python.analysis.typeCheckingMode" = "strict";
|
|
|
|
"python.testing.pytestEnabled" = true;
|
|
|
|
"[python]" = {
|
|
|
|
"editor.defaultFormatter" = "charliermarsh.ruff";
|
|
|
|
"editor.formatOnSave" = true;
|
|
|
|
"editor.codeActionsOnSave" = {
|
|
|
|
"source.fixAll" = true;
|
|
|
|
"source.organizeImports" = true;
|
|
|
|
};
|
|
|
|
};
|
2024-08-16 19:21:56 -07:00
|
|
|
"telemetry.telemetryLevel" = "off";
|
2024-11-13 22:37:45 -08:00
|
|
|
"terminal.integrated.defaultProfile.osx" = "fish";
|
|
|
|
"terminal.integrated.fontFamily" = "SF Mono";
|
|
|
|
"terminal.integrated.fontSize" = 13;
|
|
|
|
"update.mode" = "none";
|
|
|
|
"vsicons.dontShowNewVersionMessage" = true;
|
2024-08-16 19:21:56 -07:00
|
|
|
"window.openFoldersInNewWindow" = "on";
|
|
|
|
"workbench.colorTheme" = "Tokyo Night";
|
|
|
|
"workbench.iconTheme" = "vscode-icons";
|
|
|
|
"workbench.sideBar.location" = "right";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
programs.vscode = {
|
|
|
|
enable = true;
|
|
|
|
enableUpdateCheck = false;
|
|
|
|
enableExtensionUpdateCheck = false;
|
|
|
|
mutableExtensionsDir = false;
|
|
|
|
extensions = myExtensions;
|
|
|
|
userSettings = myUserSettings;
|
|
|
|
};
|
|
|
|
}
|