helm/modules/editors/vim.nix
Henrik Lissner a7834176ec
Don't use zsh/rc.d system
Instead, we just have zsh read $XDG_CONFIG_HOME/*/{aliases,env}.zsh
files.
2019-12-08 20:11:13 -05:00

20 lines
394 B
Nix

{ config, lib, pkgs, ... }:
{
environment = {
sessionVariables = {
EDITOR = "nvim";
VIMINIT = "let \\$MYVIMRC='\\$XDG_CONFIG_HOME/nvim/init.vim' | source \\$MYVIMRC";
};
systemPackages = with pkgs; [
editorconfig-core-c
neovim
];
};
home-manager.users.hlissner.xdg.configFile = {
"vim" = { source = <config/vim>; recursive = true; };
};
}