nixos-config/config/programs/vscode.nix

172 lines
5.9 KiB
Nix
Raw Normal View History

2022-03-20 16:12:55 +00:00
{ pkgs, ... }: {
programs.vscode = {
enable = true;
2022-03-20 18:19:46 +00:00
mutableExtensionsDir = false;
2022-03-20 16:59:55 +00:00
extensions = (with pkgs.vscode-extensions; [
bbenoist.nix
2022-03-28 18:21:12 +00:00
dhall.dhall-lang
dhall.vscode-dhall-lsp-server
2022-03-20 16:59:55 +00:00
eamodio.gitlens
github.copilot
jnoortheen.nix-ide
matklad.rust-analyzer
2022-03-30 07:12:16 +00:00
ms-vscode.cpptools
2022-03-20 16:59:55 +00:00
ms-vscode-remote.remote-ssh
2022-03-28 06:35:50 +00:00
scala-lang.scala
2022-03-20 16:59:55 +00:00
serayuzgur.crates
tamasfe.even-better-toml
ritwickdey.liveserver
vadimcn.vscode-lldb
yzhang.markdown-all-in-one
2022-03-27 13:59:16 +00:00
]) ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "rust-doc-viewer";
publisher = "jscearcy";
version = "2.0.1";
sha256 = "sha256-bVWM3RlcXY0+fACKrOtq63dHo0neyaw/TuhUxwCxeYs=";
}
{
name = "cargo";
publisher = "panicbit";
version = "0.2.3";
sha256 = "sha256-B0oLZE8wtygTaUX9/qOBg9lJAjUUg2i7B2rfSWJerEU=";
}
{
name = "vscode-rust-test-adapter";
publisher = "swellaby";
version = "0.11.0";
sha256 = "sha256-IgfcIRF54JXm9l2vVjf7lFJOVSI0CDgDjQT+Hw6FO4Q=";
}
{
name = "discord-vscode";
publisher = "icrawl";
version = "5.8.0";
sha256 = "sha256-IU/looiu6tluAp8u6MeSNCd7B8SSMZ6CEZ64mMsTNmU=";
}
{
name = "vscode-test-explorer";
publisher = "hbenl";
version = "2.21.1";
sha256 = "sha256-fHyePd8fYPt7zPHBGiVmd8fRx+IM3/cSBCyiI/C0VAg=";
}
{
name = "test-adapter-converter";
publisher = "ms-vscode";
version = "0.1.5";
sha256 = "sha256-nli4WJ96lL3JssNuwLCsthvphI7saFT2ktWQ46VNooc=";
}
{
name = "material-icon-theme";
publisher = "PKief";
version = "4.14.1";
sha256 = "sha256-OHXi0EfeyKMeFiMU5yg0aDoWds4ED0lb+l6T12XZ3LQ=";
}
2022-03-28 06:55:32 +00:00
{
name = "vscode-direnv";
publisher = "cab404";
version = "1.0.0";
sha256 = "sha256-+nLH+T9v6TQCqKZw6HPN/ZevQ65FVm2SAo2V9RecM3Y=";
}
2022-03-28 12:23:09 +00:00
{
name = "veriloghdl";
publisher = "mshr-h";
version = "1.5.3";
sha256 = "sha256-4BXSG/YllhpXa0z7TqytKyqAKLJvSEsOLt1i6gA+WcE=";
}
2022-03-30 07:12:16 +00:00
{
name = "cmake-tools";
publisher = "ms-vscode";
version = "1.10.5";
sha256 = "sha256-T57uCK1rGe3dBnYbK7QhN2NG3NwTEZm0/EY8S1Pyf7I=";
}
{
name = "cmake";
publisher = "twxs";
version = "0.0.17";
sha256 = "sha256-CFiva1AO/oHpszbpd7lLtDzbv1Yi55yQOQPP/kCTH4Y=";
}
{
name = "better-cpp-syntax";
publisher = "jeff-hykin";
2022-04-13 06:29:08 +00:00
version = "1.15.13";
2022-03-30 07:12:16 +00:00
sha256 = "sha256-ugn7nERz/IZ37mD/WWOWHcaB7nMLkeN+cCTCGCUHpOo=";
}
{
name = "cpptools-themes";
publisher = "ms-vscode";
version = "1.0.0";
sha256 = "sha256-E0cLGPpCwqnisgsDt6OGVlrO02mL/vuwe87qn/oCulk=";
}
{
name = "doxdocgen";
publisher = "cschlosser";
version = "1.4.0";
sha256 = "sha256-InEfF1X7AgtsV47h8WWq5DZh6k/wxYhl2r/pLZz9JbU=";
}
{
name = "clang-tidy";
publisher = "notskm";
version = "0.5.1";
sha256 = "sha256-neAvG8bk8yzpbuSzvVVi8Z3lCr29FBncXx3Sv/KChHw=";
}
2022-03-27 13:59:16 +00:00
];
userSettings = {
"diffEditor.codeLens" = true;
"editor.bracketPairColorization.enabled" = true;
"editor.cursorSmoothCaretAnimation" = true;
"editor.cursorSurroundingLines" = 3;
"editor.foldingImportsByDefault" = true;
"editor.fontFamily" = "'FiraCode Nerd Font Mono', 'Noto Sans Mono CJK', monospace";
"editor.formatOnPaste" = true;
"editor.formatOnSave" = true;
"editor.formatOnType" = true;
"editor.guides.bracketPairs" = true;
"editor.inlineSuggest.enabled" = true;
"editor.renderWhitespace" = "all";
"editor.smoothScrolling" = true;
"editor.suggest.localityBonus" = true;
"editor.suggest.preview" = true;
"editor.suggest.shareSuggestSelections" = true;
"editor.tabCompletion" = "on";
"editor.tabSize" = 2;
"editor.multiCursorModifier" = "ctrlCmd"; # Multi-Cursor wont work otherwise
"explorer.experimental.fileNesting.enabled" = true;
"files.insertFinalNewline" = true;
"files.trimFinalNewlines" = true;
"files.trimTrailingWhitespace" = true;
"git.autoStash" = true;
"git.enableCommitSigning" = true;
"git.enableSmartCommit" = true;
2022-03-27 13:59:16 +00:00
"git.fetchOnPull" = true;
"git.rebaseWhenSync" = true;
"nix.enableLanguageServer" = true;
"nix.serverPath" = "${pkgs.rnix-lsp}/bin/rnix-lsp";
"search.smartCase" = true;
"telemetry.telemetryLevel" = "off";
"update.mode" = "none";
"workbench.colorTheme" = "Monokai";
"workbench.commandPalette.preserveInput" = true;
2022-03-21 11:48:57 +00:00
"workbench.iconTheme" = "material-icon-theme";
"workbench.list.smoothScrolling" = true;
2022-04-12 11:58:17 +00:00
"C_Cpp.intelliSenseEngine" = "Disabled";
"C_Cpp.autocomplete" = "Disabled";
"C_Cpp.errorSquiggles" = "Disabled";
2022-04-12 12:09:09 +00:00
"clang-tidy.executable" = "${pkgs.llvmPackages_latest.clang-unwrapped}/bin/clang-tidy";
"cmake.cmakePath" = "${pkgs.cmake}/bin/cmake";
"github.copilot.enable" = ["*"];
"crates.listPreReleases" = true;
"css.format.spaceAroundSelectorSeparator" = true;
"less.format.spaceAroundSelectorSeparator" = true;
"scss.format.spaceAroundSelectorSeparator" = true;
"vscode-dhall-lsp-server.executable" = "${pkgs.dhall-lsp-server}/bin/dhall-lsp-server";
"doxdocgen.generic.useGitUserEmail" = true;
"doxdocgen.generic.useGitUserName" = true;
"git.confirmSync" = false;
2022-03-30 07:12:16 +00:00
"clangd.path" = "${pkgs.llvmPackages_latest.clang-unwrapped}/bin/clangd";
2022-04-12 12:09:09 +00:00
"verilog.ctags.path" = "${pkgs.ctags}/bin/ctags";
"verilog.languageServer" = "${pkgs.svls}/bin/svls";
"verilog.linting.linter" = "${pkgs.verilator}/bin/verilator";
};
2022-03-20 16:12:55 +00:00
};
}