nixos-config/modules/vim/default.nix
2023-11-27 15:21:55 -05:00

18 lines
380 B
Nix

{ config, lib, pkgs, ... }:
{
environment.variables.EDITOR = "vim";
environment.systemPackages = with pkgs; [
nodePackages.prettier
(lunarvim.override (_: {
viAlias = true;
vimAlias = true;
globalConfig = builtins.readFile ./init.lua;
}))
(writeShellScriptBin "black" ''
exec ${pkgs.python3.pkgs.black}/bin/black "$@"
'')
];
}