aboutsummaryrefslogtreecommitdiff
path: root/modules/neovide.nix
blob: b7694e44e874bd118c127780a6a98251fe2e7bb9 (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
{ config, lib, pkgs, ... }:
let
  cfg = config.modules.neovide;
in
{
  options.modules.neovide = {
    enable = lib.mkEnableOption "neovide";
    wrapWithNixGL = lib.mkEnableOption "NixGL wrapper";
  };

  config = {
    programs.neovide = lib.mkIf cfg.enable {
      enable = true;
      package = if cfg.wrapWithNixGL then config.lib.nixGL.wrap pkgs.neovide else pkgs.neovide;
      settings = {
        title-hidden = true;
        font = {
          normal = ["ComicShannsMono Nerd Font"];
          features = {
            "ComicShannsMono Nerd Font" = ["+ss01" "+ss07" "+ss11" "-calt" "+ss09" "+ss02" "+ss14"];
          };
          size = 11.0;
        };
      };
    };
  };
}