Split out more language configuration in vscode
This commit is contained in:
@@ -10,8 +10,10 @@
|
|||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./javascript.nix
|
./javascript.nix
|
||||||
|
./latex.nix
|
||||||
./markdown.nix
|
./markdown.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
|
./rust.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
@@ -35,58 +37,51 @@ in {
|
|||||||
|
|
||||||
enableUpdateCheck = false;
|
enableUpdateCheck = false;
|
||||||
enableExtensionUpdateCheck = false;
|
enableExtensionUpdateCheck = false;
|
||||||
extensions = with plugins;
|
extensions = with plugins; [
|
||||||
[
|
# General extensions
|
||||||
# General extensions
|
|
||||||
|
|
||||||
## Code Completion
|
## Code Completion
|
||||||
# github.copilot
|
# github.copilot
|
||||||
# github.copilot-chat
|
# github.copilot-chat
|
||||||
continue.continue
|
continue.continue
|
||||||
|
|
||||||
## Development Environment
|
## Development Environment
|
||||||
ms-toolsai.jupyter
|
ms-toolsai.jupyter
|
||||||
ms-vscode-remote.remote-containers
|
ms-vscode-remote.remote-containers
|
||||||
|
|
||||||
## Error Checking
|
## Error Checking
|
||||||
usernamehw.errorlens
|
usernamehw.errorlens
|
||||||
|
|
||||||
## Export and Visualisation
|
## Export and Visualisation
|
||||||
ibm.output-colorizer
|
ibm.output-colorizer
|
||||||
nobuhito.printcode
|
nobuhito.printcode
|
||||||
pnp.polacode
|
pnp.polacode
|
||||||
|
|
||||||
## Git
|
## Git
|
||||||
lamartire.git-indicators
|
lamartire.git-indicators
|
||||||
mhutchie.git-graph
|
mhutchie.git-graph
|
||||||
|
|
||||||
## Miscelaneous
|
## Miscelaneous
|
||||||
britesnow.vscode-toggle-quotes
|
britesnow.vscode-toggle-quotes
|
||||||
mrmlnc.vscode-duplicate
|
mrmlnc.vscode-duplicate
|
||||||
qcz.text-power-tools
|
qcz.text-power-tools
|
||||||
|
|
||||||
# Language extensions
|
# Language extensions
|
||||||
|
|
||||||
## CSV
|
## CSV
|
||||||
mechatroner.rainbow-csv
|
mechatroner.rainbow-csv
|
||||||
|
|
||||||
## Python
|
## Python
|
||||||
ms-python.python
|
ms-python.python
|
||||||
|
|
||||||
## Rust language extensions
|
## Rust language extensions
|
||||||
serayuzgur.crates
|
serayuzgur.crates
|
||||||
tamasfe.even-better-toml
|
tamasfe.even-better-toml
|
||||||
vadimcn.vscode-lldb
|
vadimcn.vscode-lldb
|
||||||
|
|
||||||
## SVG
|
## SVG
|
||||||
jock.svg
|
jock.svg
|
||||||
|
];
|
||||||
## Tex
|
|
||||||
james-yu.latex-workshop
|
|
||||||
]
|
|
||||||
++ [
|
|
||||||
pkgs.vscode-extensions.rust-lang.rust-analyzer
|
|
||||||
];
|
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"editor.linkedEditing" = true;
|
"editor.linkedEditing" = true;
|
||||||
"window.menuBarVisibility" = "toggle";
|
"window.menuBarVisibility" = "toggle";
|
||||||
|
|||||||
37
home/applications/vscode/latex.nix
Normal file
37
home/applications/vscode/latex.nix
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
plugins = (import ./extensions.lock) {
|
||||||
|
pkgs = pkgs;
|
||||||
|
lib = lib;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
programs.vscode = {
|
||||||
|
extensions = with plugins; [
|
||||||
|
# General
|
||||||
|
james-yu.latex-workshop
|
||||||
|
];
|
||||||
|
userSettings = {
|
||||||
|
"latex-workshop.latex.recipe.default" = "tectonic";
|
||||||
|
"latex-workshop.latex.autoBuild.run" = "onSave";
|
||||||
|
"latex-workshop.latex.outDir" = "%WORKSPACE_FOLDER%/build/index";
|
||||||
|
"latex-workshop.view.pdf.viewer" = "tab";
|
||||||
|
"latex-workshop.latex.recipes" = [
|
||||||
|
{
|
||||||
|
"name" = "tectonic";
|
||||||
|
"tools" = ["tectonic"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
"latex-workshop.latex.tools" = [
|
||||||
|
{
|
||||||
|
"name" = "tectonic";
|
||||||
|
"command" = "tectonic";
|
||||||
|
"args" = ["-X" "build" "--keep-intermediates" "--keep-logs"];
|
||||||
|
"env" = {};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
25
home/applications/vscode/rust.nix
Normal file
25
home/applications/vscode/rust.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
plugins = (import ./extensions.lock) {
|
||||||
|
pkgs = pkgs;
|
||||||
|
lib = lib;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
programs.vscode = {
|
||||||
|
extensions = with plugins;
|
||||||
|
[
|
||||||
|
# General
|
||||||
|
serayuzgur.crates
|
||||||
|
tamasfe.even-better-toml
|
||||||
|
vadimcn.vscode-lldb
|
||||||
|
]
|
||||||
|
++ [
|
||||||
|
pkgs.vscode-extensions.rust-lang.rust-analyzer
|
||||||
|
];
|
||||||
|
userSettings = {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user