about summary refs log tree commit diff stats
path: root/home-manager/soispha/config/neovim/nixvim/default.nix
blob: 6146761871bbc682c6d9b3daa5758527cc178449 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  pkgs,
  lib,
  ...
}: {
  imports = [
    ./autocmds
    ./clipboard
    ./files
    ./mappings
    ./options
    ./plugins
  ];
  programs.nixvim = {
    enable = true;

    # source: https://www.patorjk.com/software/taag/#p=display&f=ANSI%20Shadow&t=Neovim
    extraConfigLuaPre = lib.mkBefore ''
      ---------------------------------------------------------------------------
      --
      --     ███╗   ██╗███████╗ ██████╗ ██╗   ██╗██╗███╗   ███╗
      --     ████╗  ██║██╔════╝██╔═══██╗██║   ██║██║████╗ ████║
      --     ██╔██╗ ██║█████╗  ██║   ██║██║   ██║██║██╔████╔██║
      --     ██║╚██╗██║██╔══╝  ██║   ██║╚██╗ ██╔╝██║██║╚██╔╝██║
      --     ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
      --     ╚═╝  ╚═══╝╚══════╝ ╚═════╝   ╚═══╝  ╚═╝╚═╝     ╚═╝
      --
      ---------------------------------------------------------------------------
    '';

    extraPackages = with pkgs; [
      /*
      These are mostly linters and formatters used for different file types.
      Including them here is fine, as they are not necessarily sync able to different people.
      */
      # nix
      alejandra
      statix

      # yaml
      yamllint

      # shell
      shellcheck
      shfmt
    ];
  };
}