summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/editor/vim.nix
blob: 07f80719de46ce7347e877c98d01a3cddb496aea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, pkgs, ... }:

{

  environment.systemPackages = [
    ((pkgs.vim_configurable.override { python = pkgs.python3; }).customize {
      name = "vim";
      vimrcConfig.customRC = builtins.readFile ./vimrc;
      vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; { start = [
       "undotree"
        "YouCompleteMe"
        #"UltiSnips"
        # vim-nix handles indentation better but does not perform sanity
          "vim-addon-nix"
          "vim-better-whitespace"
      ];
      };
    })
  ];
}