mirror of
https://github.com/youwen5/neovim-flake.git
synced 2024-11-24 10:53:51 -08:00
feat: add vimg wrapper script for quick git view
This commit is contained in:
parent
914cd10148
commit
2543f97755
2 changed files with 7 additions and 1 deletions
|
@ -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
|
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
|
(neo)Vim, while still having everything useful you'd expect, like LSPs, file
|
||||||
explorer (`oil.nvim`), completions, advanced language tools, and QoL
|
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
|
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
|
is already incredibly powerful, and many plugins designed to emulate features
|
||||||
|
|
|
@ -73,6 +73,10 @@
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
default = nvim;
|
default = nvim;
|
||||||
|
vimg = pkgs.writeScriptBin "vimg" ''
|
||||||
|
#!/bin/sh
|
||||||
|
${nvim}/bin/nvim +Neogit
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue