nixos-config/modules/vim/default.nix

21 lines
471 B
Nix
Raw Normal View History

2023-12-12 19:15:00 +00:00
{ pkgs, ... }:
2023-09-15 17:19:18 +00:00
{
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;
2023-12-12 19:15:00 +00:00
globalConfig = builtins.readFile ./init.lua + ''
vim.cmd('source ${pkgs.vimPlugins.vim-tmux-navigator}/plugin/tmux_navigator.vim')
'';
2023-11-27 20:21:55 +00:00
}))
2023-09-15 17:19:18 +00:00
(writeShellScriptBin "black" ''
exec ${pkgs.python3.pkgs.black}/bin/black "$@"
'')
];
}