2024-02-14 10:55:58 +00:00
|
|
|
# Take note, this already assumes we're using on top of an already existing
|
|
|
|
# NixVim configuration. See the declarative users configuration for more
|
|
|
|
# details.
|
2024-02-02 03:09:35 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
userCfg = config.users.foo-dogsquared;
|
|
|
|
cfg = userCfg.programs.nixvim;
|
2024-02-11 07:32:11 +00:00
|
|
|
hmCfg = config;
|
2024-02-02 03:09:35 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.users.foo-dogsquared.programs.nixvim.enable =
|
|
|
|
lib.mkEnableOption "NixVim setup";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-02-06 14:36:03 +00:00
|
|
|
programs.nixvim = { ... }: {
|
2024-02-03 13:33:17 +00:00
|
|
|
imports =
|
|
|
|
[
|
2024-02-11 07:32:11 +00:00
|
|
|
./colorschemes.nix
|
2024-02-14 10:55:58 +00:00
|
|
|
./misc.nix
|
2024-02-03 13:33:17 +00:00
|
|
|
./note-taking.nix
|
|
|
|
]
|
2024-02-06 12:13:09 +00:00
|
|
|
++ lib.optionals userCfg.setups.development.enable [
|
2024-02-13 04:32:27 +00:00
|
|
|
./dev.nix
|
2024-02-06 12:13:09 +00:00
|
|
|
./lsp.nix
|
|
|
|
./dap.nix
|
|
|
|
];
|
2024-02-11 07:32:11 +00:00
|
|
|
config = {
|
|
|
|
enable = true;
|
2024-02-14 10:55:58 +00:00
|
|
|
|
|
|
|
# Inherit all of the schemes.
|
2024-02-11 07:32:11 +00:00
|
|
|
inherit (hmCfg) tinted-theming;
|
|
|
|
};
|
2024-02-02 03:09:35 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|