nix/module/common/Nvim.nix

19 lines
405 B
Nix
Raw Normal View History

{ inputs, pkgs, util, key, config, ... } @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;
};
}