Skip to content

usfbih8u/micro-diff-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro-diff-preview

Display a diff gutter preview in a tooltip.

This plugin functions only with files tracked by Git.

❓ How to use it

With the cursor positioned over a marked line in the diff gutter, execute the command (Ctrl+E) diff-preview to open a tooltip displaying the diff preview.

🔗 Bindings

You can use these bindings to navigate the diff while opening the previews in a tooltip.

"Alt-(": "DiffPrevious&command:diff-preview",
"Alt-)": "DiffNext&command:diff-preview",

📦 Installation

Copy/clone this repository directly to your .config/micro/plug.

⚠️ Do NOT change the name of the plugin directory. It is used as a prefix to avoid path collisions in package.path when requiring modules.

In Linux, you can copy/clone the repo anywhere and create a symlink inside .config/micro/plug using the ENABLE_FOR_MICRO.sh script.