mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
21 lines
526 B
Nix
21 lines
526 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.neovim;
|
|
|
|
in
|
|
{ options.modules.neovim = { enable = mkEnableOption "neovim"; };
|
|
config = mkIf cfg.enable {
|
|
programs.neovim = {
|
|
enable = true;
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
|
|
extraLuaConfig = import ./config/init.nix;
|
|
# generatedConfigs = {lua = import ./config/config.nix;};
|
|
plugins = import ./config/plugins.nix { inherit pkgs; };
|
|
extraPackages = import ./config/lsp.nix { inherit pkgs; };
|
|
};
|
|
};
|
|
}
|