From 3724058439f2dce68e6eae408c890379b8d97231 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Tue, 26 Sep 2023 01:08:06 +0200 Subject: [PATCH] vscodium: init installation via home-manager --- home/home.nix | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/home/home.nix b/home/home.nix index 7f9a050..dcce5af 100644 --- a/home/home.nix +++ b/home/home.nix @@ -309,7 +309,64 @@ in # { enable = true; # }; - programs.bat = { + programs.vscode = { + enable = true; + package = pkgs.vscodium; + extensions = with pkgs.vscode-extensions; [ + ms-python.python + vscodevim.vim + yzhang.markdown-all-in-one + bungcip.better-toml + eamodio.gitlens + jnoortheen.nix-ide + mkhl.direnv + # kamadorueda.alejandra + ] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [ + { + name = "Sync-Rsync"; + publisher = "vscode-ext"; + version = "0.36.0"; + sha256 = "sha256-0b/OHLZfXo0NAVAVkzZSqMGDzF0uvPRoiqsZtW1iOdA"; + } + ]; + userSettings = { + "editor.fontLigatures" = true; + "window.autoDetectColorScheme" = true; + "[nix]" = { + "editor.insertSpaces" = true; + "editor.tabSize" = 2; + }; + "editor.fontSize" = 13; + "editor.fontWeight" = "normal"; + "git.detectSubmodulesLimit" = 30; + "[python]" = { + "breadcrumbs.showClasses" = true; + "breadcrumbs.showFunctions" = true; + "gitlens.codeLens.symbolScopes" = [ + "!Module" + ]; + }; + "vim.highlightedyank.enable" = true; + "vim.history" = 500; + "vim.neovimUseConfigFile" = true; + "vim.enableNeovim" = true; + "python.formatting.blackPath" = "/Users/os/.nix-profile/bin/black"; + "git.suggestSmartCommit" = false; + "editor.rulers" = [ 88 ]; + "vim.useSystemClipboard" = true; + "vim.smartRelativeLine" = true; + "diffEditor.ignoreTrimWhitespace" = false; + "files.associations" = { + "*.py" = "python"; + }; + "editor.renderWhitespace" = "all"; + "editor.fontFamily" = "Iosevka Curly Slab, Menlo, Monaco, 'Courier New', monospace"; + "vim.neovimPath" = "/Users/os/.nix-profile/bin/nvim"; + "sync-rsync.options" = []; + }; + }; + +programs.bat = { enable = true; # pinning theme is necessary until iTerm 3.5, because despite the dark terminal background, bat detects light mode and adapts theme config.theme = "Visual Studio Dark+";