2024-06-24 13:36:10 +03:00
|
|
|
{ inputs, pkgs, util, key, config, ... } @args: let
|
2024-04-14 22:54:20 +03:00
|
|
|
nvim = import ./nvim args;
|
2024-03-04 00:34:39 +03:00
|
|
|
in {
|
2024-03-21 22:02:12 +03:00
|
|
|
environment = {
|
|
|
|
variables = {
|
2024-05-04 23:15:57 +03:00
|
|
|
EDITOR = "nvim"; # Use Nvim as a default editor.
|
|
|
|
MANPAGER = "nvim +Man!"; # Use Nvim to read man pages.
|
2024-03-21 22:02:12 +03:00
|
|
|
};
|
2024-03-25 01:42:24 +03:00
|
|
|
systemPackages = with pkgs; [
|
2024-05-04 23:15:57 +03:00
|
|
|
gcc # Required for Treesitter parsers.
|
2024-03-25 01:42:24 +03:00
|
|
|
];
|
2024-03-21 22:02:12 +03:00
|
|
|
};
|
2024-05-04 23:15:57 +03:00
|
|
|
|
2024-03-04 00:34:39 +03:00
|
|
|
programs.neovim = {
|
2024-05-04 23:15:57 +03:00
|
|
|
enable = true;
|
|
|
|
configure.customRC = nvim.config;
|
2024-03-04 00:34:39 +03:00
|
|
|
};
|
|
|
|
}
|