summaryrefslogtreecommitdiff
path: root/neovim.nix
blob: 5ade53e0724ce6c143a6c937ad90ff4e3028bc10 (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
35
36
37
38
39
40
41
{
  perSystem = {pkgs, ...}: {
    neovim = {
      package = pkgs.neovim-unwrapped;

      paths = with pkgs; [
        # external tools
        fd
        git
        ripgrep
        just

        # lint
        actionlint
        codespell
        deadnix
        nodePackages.alex
        shellcheck
        statix

        # format
        alejandra
        beautysh
        stylua

        # lsp
        nil
        sumneko-lua-language-server
      ];

      lazy = {
        settings = {
          performance.rtp.reset = true;
          install.colorscheme = ["catppuccin"];
        };

        plugins = import ./plugins {inherit pkgs;};
      };
    };
  };
}