feat(home:nvim): move to external neovim flake

This commit is contained in:
ooks-io 2024-07-22 11:51:59 +12:00
parent 3fe90d2e5f
commit 5e2324a9d6
15 changed files with 187 additions and 414 deletions

View file

@ -1,36 +1,16 @@
{ config, lib, inputs, ... }:
{ config, lib, inputs, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.editor.nvim;
console = config.ooknet.console;
ookvim = inputs.ookvim.packages.${pkgs.system}.default;
in
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
./settings.nix
./keymapping.nix
./plugins
./colorscheme.nix
];
config = mkIf (cfg.enable || console.editor == "nvim") {
programs.neovim = {
viAlias = true;
vimAlias = true;
};
programs.nixvim = {
enable = true;
plugins = {
which-key = {
enable = true;
keyLabels = {
" " = "<space>";
};
};
};
};
home.packages = [ ookvim ];
};
}