try adding platformio to vscode

This commit is contained in:
Cyryl Płotnicki 2023-09-02 20:24:38 +01:00
parent ff38de4a26
commit 4576c9875e

View file

@ -1,22 +1,32 @@
{ {
config,
pkgs, pkgs,
inputs, inputs,
... ...
}: { }: {
home.packages = with pkgs; [ home.packages = [pkgs.python3];
(vscode-with-extensions.override { programs.vscode = {
vscodeExtensions = with vscode-extensions; enable = true;
userSettings = {
editor.fontFamily = "'Berkeley Mono', 'Droid Sans Mono', 'monospace', monospace";
editor.formatOnType = true;
editor.fontSize = 16;
files.autoSave = "onFocusChange";
platformio-ide = {
useBuiltinPIOCore = true;
useBuiltinPython = true;
};
};
extensions = with pkgs.vscode-extensions;
[ [
ms-python.python ms-python.python
inputs.nixpkgs-rust-analyzer.legacyPackages.x86_64-linux.vscode-extensions.rust-lang.rust-analyzer inputs.nixpkgs-rust-analyzer.legacyPackages.x86_64-linux.vscode-extensions.rust-lang.rust-analyzer
(vscode-utils.buildVscodeExtension { (pkgs.vscode-utils.buildVscodeExtension {
vscodeExtUniqueId = "vadimcn.vscode-lldb"; vscodeExtUniqueId = "vadimcn.vscode-lldb";
vscodeExtPublisher = "vadimcn"; vscodeExtPublisher = "vadimcn";
vscodeExtName = "vscode-lldb"; vscodeExtName = "vscode-lldb";
version = "1.6.10"; version = "1.6.10";
name = "vadimcn.vscode-lldb-1.6.10"; name = "vadimcn.vscode-lldb-1.6.10";
src = fetchurl { src = pkgs.fetchurl {
name = "vadimcn.vscode-lldb.zip"; name = "vadimcn.vscode-lldb.zip";
url = "https://github.com/vadimcn/vscode-lldb/releases/download/v1.6.10/codelldb-${pkgs.system}.vsix"; url = "https://github.com/vadimcn/vscode-lldb/releases/download/v1.6.10/codelldb-${pkgs.system}.vsix";
sha256 = "sha256-QWbpe6ofacjrTCyWSKljwHDWWeHGmKNqi7cpw8Qy5Tw="; sha256 = "sha256-QWbpe6ofacjrTCyWSKljwHDWWeHGmKNqi7cpw8Qy5Tw=";
@ -24,7 +34,7 @@
buildInputs = with pkgs; [llvm lldb python38 autoPatchelfHook]; buildInputs = with pkgs; [llvm lldb python38 autoPatchelfHook];
}) })
] ]
++ vscode-utils.extensionsFromVscodeMarketplace [ ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{ {
publisher = "vscodevim"; publisher = "vscodevim";
name = "vim"; name = "vim";
@ -67,11 +77,17 @@
version = "0.6.0"; version = "0.6.0";
sha256 = "sha256-yk7buEyQIw6aiUizAm+sgalWxUibIuP9crhyBaOjC2E="; sha256 = "sha256-yk7buEyQIw6aiUizAm+sgalWxUibIuP9crhyBaOjC2E=";
} }
{
publisher = "ms-vscode";
name = "cpptools";
version = "1.17.5";
sha256 = "sha256-LAAEw8goAw3x1MU/TkIdLgPYa0f5b6Hv4GkeiPTVbdY=";
}
{ {
publisher = "ms-vscode"; publisher = "ms-vscode";
name = "cpptools-extension-pack"; name = "cpptools-extension-pack";
version = "1.1.0"; version = "1.3.0";
sha256 = "sha256-XKHBwoRXNHIpy7gDR9/xEFdEdB4S0B9L9Jbk53f/Vbc="; sha256 = "sha256-rHST7CYCVins3fqXC+FYiS5Xgcjmi7QW7M4yFrUR04U=";
} }
{ {
publisher = "tiehuis"; publisher = "tiehuis";
@ -127,12 +143,6 @@
version = "2.9.3"; version = "2.9.3";
sha256 = "1yf85hgvganxq5n5jff9ckn3smxd6xi79cgn6k53qi5w1r5rahy0"; sha256 = "1yf85hgvganxq5n5jff9ckn3smxd6xi79cgn6k53qi5w1r5rahy0";
} }
{
publisher = "lextudio";
name = "restructuredtext";
version = "106.0.0";
sha256 = "096r8071202nxi1is6z7dghcmpsh0f0mm3mp3cfh1yj2mnyzlaxa";
}
{ {
publisher = "lostintangent"; publisher = "lostintangent";
name = "vsls-pomodoro"; name = "vsls-pomodoro";
@ -164,6 +174,5 @@
sha256 = "1knspsc98cfw4mhc0yaz0f2185sxdf9kn9qsysfs6c82g9wjaqcj"; sha256 = "1knspsc98cfw4mhc0yaz0f2185sxdf9kn9qsysfs6c82g9wjaqcj";
} }
]; ];
}) };
];
} }