summaryrefslogtreecommitdiff
path: root/home/baseline/nvim.nix
blob: 882788d6de6cf0e909c5944bf3c578fce2192f03 (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
{ config, lib, ... }:
with lib; let
  cfg = config.local.baseline;
in
{
  config = {
    home.sessionVariables.EDITOR = "nvim";

    programs.neovim = {
      enable = true;

      viAlias = true;
      vimAlias = true;
      withRuby = false;
      withPython3 = false;

      extraConfig = ''
        set number         " Enable line numbering
        set relativenumber " Enable relative line numbering
        set tabstop=4      " Set tap stop to 4
        set shiftwidth=4   " Set shift width to 4 (same as tabstop)
        set viminfo=       " No tracking
      '';
    };
  };
}