nixos-config/home-manager/modules/neovim/default.nix
Erwin Boskma 4cd0f83ce8
Some checks failed
/ check (push) Failing after 2m46s
Run nixfmt
2024-02-05 11:46:52 +01:00

45 lines
753 B
Nix

{
lib,
pkgs,
config,
...
}:
with lib;
let
cfg = config.eboskma.programs.neovim;
in
{
options.eboskma.programs.neovim = {
enable = mkEnableOption "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
tree-sitter
];
xdg.configFile.nvim = {
source = ./config;
recursive = true;
};
};
}