mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-19 05:24:22 +00:00
lsp/presets/millet: init
This commit is contained in:
parent
53e89665ce
commit
a7b8cca73a
2 changed files with 25 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
|||
./lua-language-server.nix
|
||||
./markdown-oxide.nix
|
||||
./marksman.nix
|
||||
./millet.nix
|
||||
./neocmakelsp.nix
|
||||
./nil.nix
|
||||
./nimlsp.nix
|
||||
|
|
|
|||
24
modules/plugins/lsp/presets/millet.nix
Normal file
24
modules/plugins/lsp/presets/millet.nix
Normal 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"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue