about summary refs log tree commit diff stats
path: root/home-manager/soispha/config/neovim/nixvim/default.nix
blob: f216fb0549c13be41c4ec8dddc0534c39ec42322 (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
{
  pkgs,
  ...
}: {
  imports = [
    ./options
    ./mappings
    ./colorscheme
    ./clipboard
  ];
  programs.nixvim = {
    enable = true;
    defaultEditor = true;

    # to install plugins just activate their modules
    plugins = {
      lsp = {
        enable = true;
        hls.enable = true;
        rust-analyzer.enable = true;
      };
      treesitter = {
        enable = true;
        indent = true;
      };
      mini = {
        enable = true;
        ai.enable = true;
        jump.enable = true;
      };
    };

    # Not all plugins have own modules
    # You can add missing plugins here
    # `pkgs.vimExtraPlugins` is added by the overlay you added at the beginning
    # For a list of available plugins, look here: [available plugins](https://github.com/jooooscha/nixpkgs-vim-extra-plugins/blob/main/plugins.md)
    extraPlugins = [pkgs.vimExtraPlugins.nightfox-nvim];
  };
}