summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/default.nix
blob: 500ebde70267363fe817bf1a07d628eb0ed54304 (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
42
43
44
45
46
47
48
49
50
51
52
{
  pkgs,
  inputs,
}:
inputs.mnw.lib.wrap pkgs {
  neovim = pkgs.neovim-unwrapped;
  plugins = with pkgs.vimPlugins; {
    dev.config = {
      pure = ./config;
      impure = "/home/culsans/Sync/setup/pkgs/custom-neovim/config";
    };
    start = [
      # Not lazy loaded.
      lz-n # Lazy loader
      nvim-treesitter.withAllGrammars # All treesitter grammars
      vim-nix # Indentation for nix files
    ];
    opt = [
      # Lazy loaded.

      # UI Plugins
      mini-clue
      mini-pick
      mini-statusline
      mini-files
      mini-extra
      plenary-nvim

      # Utility Plugins
      mini-pairs
      comment-nvim

      # Git Plugins
      mini-git
      mini-diff
      neogit

      # Colorschemes
      nightfox-nvim
    ];
  };
  luaFiles = [./config/init.lua];
  extraBinPath = with pkgs; [
    # LSP Servers
    lua-language-server

    # Extra Utils
    ripgrep
    gcc
    fd
  ];
}