summaryrefslogtreecommitdiff
path: root/modules/nixos/vim/default.nix
blob: 2fdf0644997344007e2276b1e9f38f0fec665595 (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
{
  config,
  lib,
  pkgs,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.vim;
in {
  config = mkIf cfg.enable {
    programs.vim.package =
      (pkgs.vim-full.override {
        cscopeSupport = false;
        darwinSupport = false;
        features = "normal";
        guiSupport = "gtk3";
        luaSupport = false;
        multibyteSupport = false;
        netbeansSupport = false;
        nlsSupport = false;
        perlSupport = false;
        pythonSupport = false;
        rubySupport = false;
        tclSupport = false;
        ximSupport = false;
      })
      .customize {
        name = "vim";
        vimrcConfig = with cfg; {
          customRC = rc;
          packages.myVimPackage.start = plugins;
        };
      };
  };
}