https://github.com/nathom/diffstatus.nvim
Lightweight diff status viewer for neovim
https://github.com/nathom/diffstatus.nvim
Last synced: about 1 month ago
JSON representation
Lightweight diff status viewer for neovim
- Host: GitHub
- URL: https://github.com/nathom/diffstatus.nvim
- Owner: nathom
- Created: 2023-06-20T19:57:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-20T19:57:54.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T04:44:57.137Z (3 months ago)
- Language: Lua
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# diffstatus.nvim
A lightweight lua plugin that gives you the number of lines
added/removed in a file using git.## Usage
```lua
-- mapping from filename to a 2 item table containing lines
-- added and removedlocal index = require('diffstatus').index
for filename, status in pairs(index) do
print(filename .. ': ' .. status[1] .. ' lines added,
' .. status[2] .. 'lines removed')end
```