nix/module/common/Nvim.nix

19 lines
406 B
Nix
Raw Normal View History

2024-04-06 03:03:58 +03:00
{ inputs, pkgs, util, key, setting, ... } @args: let
2024-04-14 22:54:20 +03:00
nvim = import ./nvim args;
in {
environment = {
variables = {
EDITOR = "nvim"; # Use Nvim as a default editor.
MANPAGER = "nvim +Man!"; # Use Nvim to read man pages.
};
systemPackages = with pkgs; [
gcc # Required for Treesitter parsers.
];
};
programs.neovim = {
enable = true;
configure.customRC = nvim.config;
};
}