nixos-config/modules/vim/default.nix

19 lines
380 B
Nix
Raw Normal View History

2023-09-15 17:19:18 +00:00
{ config, lib, pkgs, ... }:
{
2023-10-03 16:27:34 +00:00
environment.variables.EDITOR = "vim";
2023-09-20 17:55:22 +00:00
2023-09-15 17:19:18 +00:00
environment.systemPackages = with pkgs; [
nodePackages.prettier
2023-10-03 16:27:34 +00:00
2023-11-27 20:21:55 +00:00
(lunarvim.override (_: {
viAlias = true;
vimAlias = true;
globalConfig = builtins.readFile ./init.lua;
}))
2023-09-15 17:19:18 +00:00
(writeShellScriptBin "black" ''
exec ${pkgs.python3.pkgs.black}/bin/black "$@"
'')
];
}