summary refs log tree commit diff
path: root/modules/vim.nix
blob: a511bc1e223e0468d989a9fc6651cdf81cf61ab2 (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
{ pkgs, ... }:

let
  vim-configured =
    with pkgs;
    vim-full.customize {
      name = "vim"; # explicitly replace vim

      vimrcConfig = {
        customRC = builtins.readFile ../configs/.vimrc;

        packages.collection = with vimPlugins; {
          start = [
            YouCompleteMe
            fzf-vim
            vim-easymotion
            vim-sleuth
            vim-better-whitespace
            vim-tmux-navigator
          ];

          opt = [ ];
        };
      };
    };

in
{
  programs.vim = {
    defaultEditor = true;

    package = vim-configured;
  };
}