24 lines
508 B
Nix
24 lines
508 B
Nix
{ config, options, lib, pkgs, ... }:
|
|
with lib;
|
|
with lib.custom;
|
|
let
|
|
cfg = config.modules.editors.vim;
|
|
in {
|
|
options.modules.editors.vim = {
|
|
enable = mkBoolOpt false;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
user.packages = with pkgs; [
|
|
editorconfig-core-c
|
|
unstable.neovim
|
|
];
|
|
|
|
# env.VIMINIT = "let \\$MYVIMRC='\\$XDG_CONFIG_HOME/nvim/init.vim' | source \\$MYVIMRC";
|
|
|
|
environment.shellAliases = {
|
|
vim = "nvim";
|
|
};
|
|
};
|
|
}
|