lsp/presets/clojure-lsp: init

This commit is contained in:
Snoweuph 2026-04-12 15:22:02 +02:00
commit e439bf45b9
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
2 changed files with 26 additions and 1 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.clojure-lsp;
in {
options.vim.lsp.presets.clojure-lsp = {
enable = mkEnableOption "the Clojure Language Server";
};
config = mkIf cfg.enable {
vim.lsp.servers.clojure-lsp = {
enable = true;
cmd = [(getExe pkgs.clojure-lsp)];
root_markers = [".git" "project.clj"];
};
};
}