From 2543f9775517d9358eb8b4d3e8cf5ecfca156ee0 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 18 Sep 2024 01:31:22 -0700 Subject: [PATCH] feat: add vimg wrapper script for quick git view --- README.md | 4 +++- flake.nix | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b49b483..89a102b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/flake.nix b/flake.nix index f61ecc9..a41b421 100644 --- a/flake.nix +++ b/flake.nix @@ -73,6 +73,10 @@ packages = { default = nvim; + vimg = pkgs.writeScriptBin "vimg" '' + #!/bin/sh + ${nvim}/bin/nvim +Neogit + ''; }; }; };