nixos-config/home-manager/modules/neovim/default.nix

38 lines
724 B
Nix

{
lib,
pkgs,
config,
...
}:
with lib; let
cfg = config.eboskma.programs.neovim;
in {
options.eboskma.programs.neovim = {enable = mkEnableOption "activate neovim";};
config = mkIf cfg.enable {
# unfortunately this does properly support a Lua based config
# programs.neovim = {
# enable = true;
# # Enable some aliases
# viAlias = true;
# vimAlias = true;
# vimdiffAlias = true;
# withNodeJs = true;
# withPython3 = true;
# withRuby = true;
# extraConfig = ''
# luafile ./config.lua
# '';
# };
home.packages = with pkgs; [neovim];
xdg.configFile.nvim = {
source = ./config;
recursive = true;
};
};
}