From 57baa8ac771f90d2d8b042cf822d9a52377e2a76 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sat, 10 Aug 2024 22:41:29 -0700 Subject: [PATCH] flake update and vscode improvements --- flake.lock | 12 ++++++------ home.nix | 28 +++++++++++++++++++--------- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/flake.lock b/flake.lock index 0a2cec6..ea67a4b 100644 --- a/flake.lock +++ b/flake.lock @@ -42,11 +42,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1722813957, - "narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=", + "lastModified": 1723175592, + "narHash": "sha256-M0xJ3FbDUc4fRZ84dPGx5VvgFsOzds77KiBMW/mMTnI=", "owner": "nixos", "repo": "nixpkgs", - "rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa", + "rev": "5e0ca22929f3342b19569b21b2f3462f053e497b", "type": "github" }, "original": { @@ -58,11 +58,11 @@ }, "nur": { "locked": { - "lastModified": 1723096977, - "narHash": "sha256-/OFbSpsjIl+b5ECPKz7anD/Q8EGFCOIjG9w9NIV61Gk=", + "lastModified": 1723307312, + "narHash": "sha256-UcvsWK+vM/Cc8lGlqDpSa+75hAQY0LWa6n06VpVZCGQ=", "owner": "nix-community", "repo": "nur", - "rev": "27f59822c315763c64b55fb12f862a54df79b929", + "rev": "0572e827f7bde034f478125ea5a932ff32715616", "type": "github" }, "original": { diff --git a/home.nix b/home.nix index d15be50..ab62e54 100644 --- a/home.nix +++ b/home.nix @@ -242,18 +242,28 @@ yzhang.markdown-all-in-one ]; userSettings = { - editor.fontFamily = "SF Mono"; - editor.fontSize = 13; - editor.copyWithSyntaxHighlighting = true; - telemetry.enableTelemetry = false; - workbench.colorTheme = "Tokyo Night"; - workbench.iconTheme = "vscode-icons"; - workbench.sideBar.location = "right"; - "githubPullRequests.pullBranch" = "never"; - "markdown.extension.preview.autoShowPreviewToSide" = true; + "editor.fontFamily" = "SF Mono"; + "editor.fontSize" = 13; + "editor.copyWithSyntaxHighlighting" = true; "extensions.experimental.affinity" = { "asvetliakov.vscode-neovim" = 1; }; + "files.autoSave" = "afterDelay"; + "git.autoSave" = "afterDelay"; + "git.rebaseWhenSync" = true; + "github.gitProtocol" = "ssh"; + "githubPullRequests.notifications" = "pullRequests"; + "githubPullRequests.pullBranch" = "never"; + "markdown.extension.preview.autoShowPreviewToSide" = true; + # 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" ]; + "telemetry.telemetryLevel" = "off"; + "window.openFoldersInNewWindow" = "on"; + "workbench.colorTheme" = "Tokyo Night"; + "workbench.iconTheme" = "vscode-icons"; + "workbench.sideBar.location" = "right"; }; };