lsp/presets/rumdl: init

This commit is contained in:
Snoweuph 2026-04-11 23:16:31 +02:00
commit 417336cc5b
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib.meta) getExe;
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
cfg = config.vim.lsp.presets.rumdl;
in {
options.vim.lsp.presets.rumdl = {
enable = mkEnableOption "the Rumdl Language Server";
};
config = mkIf cfg.enable {
vim.lsp.servers.rumdl = {
enable = true;
cmd = [(getExe pkgs.rumdl) "server"];
root_markers = [".git" ".rumdl.toml" "rumdl.toml" ".config/rumdl.toml" "pyproject.toml"];
};
};
}