Skip to content

Commit 11c505f

Browse files
committed
vscodium: add millet configuration
1 parent 3f8d4c2 commit 11c505f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

home/modules/vscodium.nix

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
let
44
inherit (pkgs)
5+
millet
56
nixfmt
67
nil
78
rust-analyzer
@@ -65,6 +66,7 @@ in
6566
"serverPath" = "${nil}/bin/nil";
6667
};
6768
"[nix]" = {
69+
"editor.formatOnSave" = true;
6870
"editor.insertSpaces" = true;
6971
"editor.tabSize" = 2;
7072
};
@@ -77,21 +79,29 @@ in
7779

7880
# Rust
7981
"rust-analyzer.server.path" = "${rust-analyzer}/bin/rust-analyzer";
82+
83+
# Standard ML
84+
"[sml]" = {
85+
"editor.defaultFormatter" = "azdavis.millet";
86+
"editor.formatOnSave" = true;
87+
};
88+
"millet.format.engine" = "smlfmt";
89+
"millet.server.path" = "${millet}/bin/millet-ls";
8090
};
8191

8292
extensions = with pkgs.vscode-extensions; [
8393
# Nix
8494
jnoortheen.nix-ide
8595

86-
# Gleam
87-
gleam.gleam
88-
8996
# Go
9097
golang.go
9198

9299
# Rust
93100
rust-lang.rust-analyzer
94101

102+
# Standard ML
103+
azdavis.millet
104+
95105
# Markdown
96106
yzhang.markdown-all-in-one
97107

0 commit comments

Comments
 (0)