Skip to content

Commit 302b08f

Browse files
committed
neovim: cleanup
1 parent f7ad6c2 commit 302b08f

File tree

1 file changed

+6
-11
lines changed
  • modules/home/programs/terminal/editors/neovim

1 file changed

+6
-11
lines changed

modules/home/programs/terminal/editors/neovim/default.nix

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
config,
3+
inputs,
34
lib,
45
namespace,
5-
system,
6-
inputs,
7-
pkgs,
86
osConfig,
7+
pkgs,
8+
system,
99
...
1010
}:
1111
let
12-
inherit (lib) mkEnableOption mkIf;
1312
inherit (lib.${namespace}) mkBoolOpt;
1413

1514
khanelivimConfiguration = inputs.khanelivim.nixvimConfigurations.${system}.khanelivim;
@@ -33,16 +32,14 @@ let
3332
in
3433
{
3534
options.${namespace}.programs.terminal.editors.neovim = {
36-
enable = mkEnableOption "neovim";
35+
enable = lib.mkEnableOption "neovim";
3736
default = mkBoolOpt true "Whether to set Neovim as the session EDITOR";
3837
};
3938

40-
config = mkIf cfg.enable {
39+
config = lib.mkIf cfg.enable {
4140
home = {
42-
# file = mkIf pkgs.stdenv.isDarwin { "Library/Preferences/glow/glow.yml".text = config; };
43-
4441
sessionVariables = {
45-
EDITOR = mkIf cfg.default "nvim";
42+
EDITOR = lib.mkIf cfg.default "nvim";
4643
};
4744
packages = [
4845
khanelivim
@@ -56,7 +53,5 @@ in
5653
path = "${config.home.homeDirectory}/.wakatime.cfg";
5754
};
5855
};
59-
60-
# xdg.configFile = mkIf pkgs.stdenv.isLinux { "glow/glow.yml".text = config; };
6156
};
6257
}

0 commit comments

Comments
 (0)