summaryrefslogtreecommitdiff
path: root/hm/editors/nvf.nix
blob: 91348a9b637c2aca1d31c8ceba4881291fd17734 (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
{ inputs, config, lib, pkgs, ... }:
let
  cfg = config.szpont.hm.editors.nvf;
in
{
  options.szpont.hm.editors.nvf.enable = lib.mkEnableOption "enables nvf configuration framework";

  config = lib.mkIf cfg.enable {
    programs.nvf = {
      enable = true;

      settings.vim = {
        package = inputs.neovim-nightly-overlay.packages.${pkgs.stdenv.hostPlatform.system}.default;

        viAlias = true;
        vimAlias = true;
        
        theme = {
          enable = true;
          name = "gruvbox";
          style = "dark";
        };
       
        statusline = {
          lualine = {
            enable = true;
            theme = "gruvbox-material";
          };
        };

       autopairs.nvim-autopairs.enable = true;

        lsp.enable = true;

      languages = {
        nix = {
          enable = true;
          format = {
            enable = true;
            type = "alejandra";
            };
          };
        clang.enable = true;
        };
      };
    };
  };
}