1- *nvim-tinygit.txt* For Neovim Last change: 2025 May 06
1+ *nvim-tinygit.txt* For Neovim Last change: 2025 May 13
22
33==============================================================================
44Table of Contents *nvim-tinygit-table-of-contents*
@@ -28,7 +28,7 @@ Interactive stagingSmart commitFile history- **Interactive staging** of hunks (p
2828 commit preview, and commit title length indicators. If there are no staged
2929 changes, stages all changes before doing so (`git add -A`). Optionally trigger
3030 a `git push` afterward.
31- - Convenient commands for **amend, stash , fixup, or undoing** commits.
31+ - Convenient commands for **amending, stashing , fixup, or undoing commits** .
3232- Search **issues & PRs**. Open the selected issue or PR in the browser.
3333- Open the **GitHub URL** of the current file, repo, or selected lines. Also
3434 supports opening GitHub’s blame view.
@@ -64,28 +64,27 @@ TABLE OF CONTENTS *nvim-tinygit-nvim-tinygit-table-of-contents*
6464
6565INSTALLATION *nvim-tinygit-nvim-tinygit-installation*
6666
67- **Requirements** - nvim 0.10+ - for interactive staging: telescope.nvim
68- <https://github.com/nvim-telescope/telescope.nvim > for (PRs adding support for
69- other pickers welcome) - for GitHub-related commands: `curl` -
70- _recommended_Treesitter parser for syntax highlighting: `TSInstall gitcommit` -
71- _recommended_a plugin implementing `vim .ui.select` , such as: snacks.picker
72- <http://github.com/folke/snacks.nvim > mini.pick
67+ **Requirements** - nvim 0.10+ - A plugin implementing `vim .ui.select` , such as:
68+ snacks.picker <http://github.com/folke/snacks.nvim > mini.pick
7369<http://github.com/echasnovski/mini.pick > telescope.nvim
7470<https://github.com/nvim-telescope/telescope.nvim > with telescope-ui-select
7571<https://github.com/nvim-telescope/telescope-ui-select.nvim > fzf-lua
76- <https://github.com/ibhagwan/fzf-lua >
72+ <https://github.com/ibhagwan/fzf-lua > - For interactive staging: telescope.nvim
73+ <https://github.com/nvim-telescope/telescope.nvim > (PRs adding support for
74+ other pickers are welcome.) - For GitHub-related commands: `curl` -
75+ _Recommended_Treesitter parser for syntax highlighting: `TSInstall gitcommit`.
7776
7877>lua
7978 -- lazy.nvim
8079 {
81- "chrisgrieser/nvim-tinygit"
82- dependencies = "nvim-telescope/telescope.nvim",
80+ "chrisgrieser/nvim-tinygit",
81+ -- dependencies = "nvim-telescope/telescope.nvim", -- only for interactive staging
8382 },
8483
8584 -- packer
8685 use {
8786 "chrisgrieser/nvim-tinygit",
88- requires = "nvim-telescope/telescope.nvim",
87+ -- requires = "nvim-telescope/telescope.nvim", -- only for interactive staging
8988 }
9089<
9190
@@ -151,7 +150,7 @@ The `setup` call is optional.
151150 confirmationSound = true, -- currently macOS only, PRs welcome
152151
153152 -- If pushed commits contain references to issues, open them in the browser
154- -- (not used when using force-push ).
153+ -- (not used when force-pushing ).
155154 openReferencedIssues = false,
156155 },
157156 github = {
@@ -221,7 +220,7 @@ INTERACTIVE STAGING ~
221220 Larger context size is going to "merge" changes that are close to one another
222221 into one hunk. (As such, the hunks displayed are not 1:1 the same as the hunks
223222 from `gitsigns.nvim` .) A context size between 1 and 4 is recommended.
224- - Limitations : `contextSize= 0 ` (= no merging at all) is not supported.
223+ - Limitation : `contextSize= 0 ` (= no merging at all) is not supported.
225224
226225>lua
227226 require("tinygit").interactiveStaging()
@@ -239,7 +238,7 @@ SMART COMMIT ~
239238 no surprises.
240239- Input field contents of aborted commits are briefly kept, if you just want to
241240 fix a detail.
242- - The first line is used as commit subject, the rest is as commit body.
241+ - The first line is used as commit subject, the rest as commit body.
243242
244243>lua
245244 -- values shown are the defaults
@@ -257,10 +256,11 @@ SMART COMMIT ~
2572561. Stage some changes via `<leader> ga` .
2582572. Use `<leader> gc` to enter a commit message.
2592583. Repeat 1 and 2.
260- 4. When done, `<leader> gp ` to push the commits.
259+ 4. When done, use `<leader> gp ` to push the commits.
261260
262- Using `pushIfClean = true` allows you to combine staging, committing, and
263- pushing into a single step, when it is the last commit you intend to make.
261+ Using `require("tinygit").smartCommit({pushIfClean = true})` allows you to
262+ combine staging, committing, and pushing into a single step, when it is the
263+ last commit you intend to make.
264264
265265
266266AMEND AND FIXUP COMMITS ~
@@ -300,14 +300,15 @@ UNDO LAST COMMIT/AMEND ~
300300 require("tinygit").undoLastCommitOrAmend()
301301<
302302
303- - Changes in the working directory are kept, but unstaged. (In the background,
303+ - Changes in the working directory are kept but unstaged. (In the background,
304304 this uses `git reset --mixed`.)
305- - If there was a `push` operation done as a followup (such as `.smartCommit { pushIfClean = false }`), the last commit is not undone.
305+ - If there was a `push` operation done as a followup, the last commit is not
306+ undone.
306307
307308
308309GITHUB INTERACTION ~
309310
310- **Search issues & PRs** - The GitHub interaction commands all require `curl` .
311+ **Search issues & PRs** - All GitHub interaction commands require `curl` .
311312
312313>lua
313314 -- state: all| closed | open (default: all)
@@ -323,11 +324,11 @@ GITHUB INTERACTION ~
323324link is opened in the browser and copied to the system clipboard. In normal
324325mode, uses the current file, in visual mode, uses the selected lines. (Note
325326that visual mode detection requires you to use the lua function below instead
326- of the `:Tinygit` ex-command.) - `" file" ` code view - `" blame" ` blame view -
327- `" repo" ` repo root
327+ of the `:Tinygit` ex-command.) - `" file" ` link to the file - `" blame" ` link to
328+ the blame view of the file - `" repo" ` link to the repo root
328329
329330>lua
330- -- file| repo | blame (default: file)
331+ -- " file"|" repo"|" blame" (default: " file" )
331332 require("tinygit").githubUrl("file")
332333<
333334
0 commit comments