feat: add vimg wrapper script for quick git view

This commit is contained in:
Youwen Wu 2024-09-18 01:31:22 -07:00
parent 914cd10148
commit 2543f97755
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 7 additions and 1 deletions

View file

@ -5,7 +5,9 @@ This is the Neovim configuration for all my NixOS and Nix enabled systems
blingful features like sidebars or fancy UI enhancements in favor of native
(neo)Vim, while still having everything useful you'd expect, like LSPs, file
explorer (`oil.nvim`), completions, advanced language tools, and QoL
enhancements.
enhancements. Additionally, a small wrapper script called `vimg` is provided in
`packages.${system}.vimg` which simply opens Neovim inside the `Neogit` UI.
This allows it to be used as a quick git TUI from the shell.
The central design goal is to prefer Vim whenever possible. The Vim text editor
is already incredibly powerful, and many plugins designed to emulate features

View file

@ -73,6 +73,10 @@
packages = {
default = nvim;
vimg = pkgs.writeScriptBin "vimg" ''
#!/bin/sh
${nvim}/bin/nvim +Neogit
'';
};
};
};