This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/env/nix/modules/neovim.nix

21 lines
445 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
aliases = { vim = "nvim"; vi = "nvim"; };
in
{
2020-10-24 10:12:39 -05:00
environment = {
systemPackages = [ unstable.neovim ];
2020-10-24 10:12:39 -05:00
variables = {
EDITOR = "nvim";
PAGER = "nvim";
VISUAL = "nvim";
2020-10-24 16:03:39 -05:00
MANPAGER = "nvim +Man!";
MANWIDTH = "80";
2020-10-24 10:12:39 -05:00
};
shellAliases = aliases;
2020-10-24 10:12:39 -05:00
};
programs.bash.shellAliases = aliases;
programs.fish.shellAliases = aliases;
2020-10-24 10:03:34 -05:00
}