summaryrefslogtreecommitdiffstats
path: root/modules/plugins/repl/conjure/conjure.nix
blob: 4dad04300b41c961b91a9ba798f85c946d369517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  config,
  pkgs,
  lib,
  ...
}: let
  inherit (lib.options) mkEnableOption;
  inherit (lib.modules) mkIf;

  cfg = config.vim.repl.conjure;
in {
  options.vim.repl.conjure = {
    enable = mkEnableOption "Conjure";
  };

  config = mkIf cfg.enable {
    vim.lazy.plugins.conjure = {
      package = pkgs.vimPlugins.conjure;
      ft = [
        "clojure"
        "fennel"
        "janet"
        "hy"
        "julia"
        "racket"
        "scheme"
        "lua"
        "lisp"
        "python"
        "rust"
        "sql"
        "javascript"
        "typescript"
        "php"
        "r"
      ];
      cmd = [
        "ConjureSchool"
        "ConjureEval"
        "ConjureConnect"
        "ConjureClientState"
      ];
    };
  };
}