feat(home:nvim): move to external neovim flake
This commit is contained in:
parent
3fe90d2e5f
commit
5e2324a9d6
15 changed files with 187 additions and 414 deletions
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue