aboutsummaryrefslogtreecommitdiff
path: root/vim.nix
blob: 197578a46927ab39ef91bb4d3d83b84fc148f013 (plain) (blame)
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
{ config, lib, pkgs, ... }:

{
  programs.vim = {
    enable = true;

    # to search vim plugins:
    # nix-env -f '<nixpkgs>' -qaP -A vimPlugins
    plugins = with pkgs.vimPlugins; [
      vim-fugitive
      vim-sensible
      vim-nix
      editorconfig-vim
      goyo-vim
      fzf-vim
    ];

    settings = {
      expandtab = true;
      shiftwidth = 4;
      tabstop = 4;

      hidden = true;
      mouse = "a";
      number = false;
      relativenumber = false;
    };
  };

  home.sessionVariables = {
    VISUAL = "vim";
    EDITOR = "vim -e";
  };
}