nixos-config/modules/vim/default.nix
2023-12-12 14:18:17 -05:00

20 lines
471 B
Nix

{ pkgs, ... }:
{
environment.variables.EDITOR = "vim";
environment.systemPackages = with pkgs; [
nodePackages.prettier
(lunarvim.override (_: {
viAlias = true;
vimAlias = true;
globalConfig = builtins.readFile ./init.lua + ''
vim.cmd('source ${pkgs.vimPlugins.vim-tmux-navigator}/plugin/tmux_navigator.vim')
'';
}))
(writeShellScriptBin "black" ''
exec ${pkgs.python3.pkgs.black}/bin/black "$@"
'')
];
}