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

36 lines
720 B
Nix
Raw Normal View History

2021-12-18 16:23:14 +01:00
{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.eboskma.programs.neovim;
in
{
options.eboskma.programs.neovim = { enable = mkEnableOption "activate neovim"; };
config = mkIf cfg.enable {
2022-01-13 09:03:22 +01:00
# unfortunately this does properly support a Lua based config
# programs.neovim = {
# enable = true;
2021-12-18 16:23:14 +01:00
2022-01-13 09:03:22 +01:00
# # Enable some aliases
# viAlias = true;
# vimAlias = true;
# vimdiffAlias = true;
2021-12-18 16:23:14 +01:00
2022-01-13 09:03:22 +01:00
# withNodeJs = true;
# withPython3 = true;
# withRuby = true;
# extraConfig = ''
# luafile ./config.lua
# '';
# };
home.packages = with pkgs; [ neovim ];
xdg.configFile.nvim = {
source = ./config;
recursive = true;
2021-12-18 16:23:14 +01:00
};
};
}