feat: added nvimdiff and nvimdiff
This commit is contained in:
parent
b134344dd5
commit
14a58c86d1
1 changed files with 15 additions and 1 deletions
|
@ -1,4 +1,18 @@
|
||||||
{
|
{pkgs, ...}: let
|
||||||
|
makeDiff = name:
|
||||||
|
pkgs.writeShellScriptBin name ''
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
if [ $# -lt 2 ]; then
|
||||||
|
echo "Usage: ${name} <file1> <file2> [more args…]" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
exec nvim -d "$@"
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
environment.systemPackages = [
|
||||||
|
(makeDiff "vimdiff")
|
||||||
|
(makeDiff "nvimdiff")
|
||||||
|
];
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue