File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
modules/home/programs/terminal/editors/neovim Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
config ,
3
+ inputs ,
3
4
lib ,
4
5
namespace ,
5
- system ,
6
- inputs ,
7
- pkgs ,
8
6
osConfig ,
7
+ pkgs ,
8
+ system ,
9
9
...
10
10
} :
11
11
let
12
- inherit ( lib ) mkEnableOption mkIf ;
13
12
inherit ( lib . ${ namespace } ) mkBoolOpt ;
14
13
15
14
khanelivimConfiguration = inputs . khanelivim . nixvimConfigurations . ${ system } . khanelivim ;
33
32
in
34
33
{
35
34
options . ${ namespace } . programs . terminal . editors . neovim = {
36
- enable = mkEnableOption "neovim" ;
35
+ enable = lib . mkEnableOption "neovim" ;
37
36
default = mkBoolOpt true "Whether to set Neovim as the session EDITOR" ;
38
37
} ;
39
38
40
- config = mkIf cfg . enable {
39
+ config = lib . mkIf cfg . enable {
41
40
home = {
42
- # file = mkIf pkgs.stdenv.isDarwin { "Library/Preferences/glow/glow.yml".text = config; };
43
-
44
41
sessionVariables = {
45
- EDITOR = mkIf cfg . default "nvim" ;
42
+ EDITOR = lib . mkIf cfg . default "nvim" ;
46
43
} ;
47
44
packages = [
48
45
khanelivim
56
53
path = "${ config . home . homeDirectory } /.wakatime.cfg" ;
57
54
} ;
58
55
} ;
59
-
60
- # xdg.configFile = mkIf pkgs.stdenv.isLinux { "glow/glow.yml".text = config; };
61
56
} ;
62
57
}
You can’t perform that action at this time.
0 commit comments