lsp/presets/millet: init

This commit is contained in:
Snoweuph 2026-05-15 14:39:27 +02:00
commit a7b8cca73a
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
2 changed files with 25 additions and 0 deletions

View file

@ -35,6 +35,7 @@
./lua-language-server.nix
./markdown-oxide.nix
./marksman.nix
./millet.nix
./neocmakelsp.nix
./nil.nix
./nimlsp.nix

View file

@ -0,0 +1,24 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib.meta) getExe;
inherit (lib.modules) mkIf;
inherit (lib.nvim.types) mkLspPresetEnableOption;
cfg = config.vim.lsp.presets.millet;
in {
options.vim.lsp.presets.millet = {
enable = mkLspPresetEnableOption "millet" "Millet Standard ML" [];
};
config = mkIf cfg.enable {
vim.lsp.servers.millet = {
enable = true;
cmd = [(getExe pkgs.millet)];
root_markers = [".git" "millet.toml"];
};
};
}