Migrate nvim config
This commit is contained in:
26
modules/editors/neovim/default.nix
Normal file
26
modules/editors/neovim/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.editors.neovim;
|
||||
in {
|
||||
options.modules.editors.neovim = {
|
||||
enable = mkBoolOpt false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
user.packages = with pkgs; [
|
||||
neovim
|
||||
];
|
||||
|
||||
home.configFile = {
|
||||
"nvim/init.lua" = { source = ./init.lua; };
|
||||
"nvim/lua" = { source = ./lua; recursive = true; };
|
||||
};
|
||||
|
||||
environment.shellAliases = {
|
||||
vim = "nvim";
|
||||
v = "nvim";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user