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

23 lines
609 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-11-05 23:32:22 -06:00
# we have to escape these doublequotes so that they work when NixOS
# injects them into the shell
MANPAGER = ''env MANWIDTH=\"\" nvim --cmd \"let g:prosession_on_startup=0\" +Man!'';
2020-10-24 16:03:39 -05:00
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
}