From 5be09f440a0b7d2e3c53bf3cdc7d54a2a8ea07c3 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Wed, 6 Dec 2023 17:30:01 +0100 Subject: [PATCH] installed typst typesetting program --- systems/common/vscode.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/systems/common/vscode.nix b/systems/common/vscode.nix index 141dc92..d1cdb62 100644 --- a/systems/common/vscode.nix +++ b/systems/common/vscode.nix @@ -34,6 +34,7 @@ ziglang.vscode-zig slevesque.shader ms-vscode.cpptools + nvarner.typst-lsp streetsidesoftware.code-spell-checker streetsidesoftware.code-spell-checker-german @@ -91,6 +92,12 @@ "editor.formatOnSaveMode" = "modificationsIfAvailable"; }; + "[typst]" = { + "editor.defaultFormatter" = "nvarner.typst-lsp"; + "editor.formatOnSave" = true; + "editor.formatOnSaveMode" = "modificationsIfAvailable"; + }; + "nix.enableLanguageServer" = true; "nix.serverPath" = "${pkgs.nil}/bin/nil"; "nix.serverSettings" = { @@ -113,9 +120,14 @@ "cSpell.language" = "en,de-de"; - "zig.zigPath" = ""; # Use the zig from the PATH + "zig.path" = ""; + "zig.zigPath" = ""; + # "zig.zls.zigLibPath" = "${pkgs.unstable.zig}/lib/zig"; "zig.zls.path" = "${pkgs.unstable.zls}/bin/zls"; + "typst-lsp.serverPath" = "${pkgs.typst-lsp}/bin/typst-lsp"; + "typst-lsp.experimentalFormatterMode" = "on"; + "C_Cpp.default.compilerPath" = "${pkgs.gnat}/bin/g++"; "C_Cpp.default.includePath" = [ "\${workspaceFolder}/**"