about summary refs log tree commit diff
path: root/modules/common/neovim/default.nix
blob: 1e5f103717517bc1c52bfb1b073ec60fa5cc1817 (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
{
  config,
  inputs,
  lib,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.neovim;
in {
  options.nixfiles.modules.neovim.enable = mkEnableOption "NeoVim";

  config = mkIf cfg.enable {
    hm = {
      imports = [inputs.nixvim.homeManagerModules.nixvim];

      programs.nixvim = {
        enable = true;

        plugins = {
          lsp.enable = true;
          nix.enable = true;
          surround.enable = true;
        };
      };
    };
  };
}

Consider giving Nix/NixOS a try! <3