summaryrefslogtreecommitdiff
path: root/modules/nixos/vim/default.nix
blob: 5d62e3540772f8329cc6d8a9e21fe13adceef501 (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
{
  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;
          };
        };
  };
}