Add vimdoc
This commit is contained in:
91
doc/picvim.txt
Normal file
91
doc/picvim.txt
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
*picvim.txt* Plugin documentation for picvim
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
NAME
|
||||||
|
picvim - A Neovim plugin for viewing and manipulating images.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
SYNOPSIS
|
||||||
|
lua require'picvim'.setup({ options })
|
||||||
|
|
||||||
|
Configurable key mappings for image navigation and manipulation.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
INSTALLATION
|
||||||
|
Use your preferred plugin manager, e.g., with lazy.nvim:
|
||||||
|
|
||||||
|
```lua
|
||||||
|
{
|
||||||
|
'yourusername/picvim',
|
||||||
|
config = function()
|
||||||
|
require'picvim'.setup({
|
||||||
|
keymap = {
|
||||||
|
move_left = { "<Left>", "h" },
|
||||||
|
move_right = { "<Right>", "l" },
|
||||||
|
move_down = { "<Down>", "j" },
|
||||||
|
move_up = { "<Up>", "k" },
|
||||||
|
zoom_in = { "=", "+" },
|
||||||
|
zoom_out = { "-", "_" },
|
||||||
|
rotate_clockwise = "t",
|
||||||
|
rotate_counterclockwise = "T",
|
||||||
|
reset = "o",
|
||||||
|
rerender = "r",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
CONFIGURATION
|
||||||
|
|
||||||
|
The plugin can be configured using:
|
||||||
|
|
||||||
|
```lua
|
||||||
|
require'picvim'.setup({
|
||||||
|
keymap = {
|
||||||
|
move_left = { "<Left>", "h" }, -- Pan left
|
||||||
|
move_right = { "<Right>", "l" }, -- Pan right
|
||||||
|
move_down = { "<Down>", "j" }, -- Pan down
|
||||||
|
move_up = { "<Up>", "k" }, -- Pan up
|
||||||
|
zoom_in = { "=", "+" }, -- Zoom in
|
||||||
|
zoom_out = { "-", "_" }, -- Zoom out
|
||||||
|
rotate_clockwise = "t", -- Rotate clockwise
|
||||||
|
rotate_counterclockwise = "T", -- Rotate counterclockwise
|
||||||
|
reset = "o", -- Reset image
|
||||||
|
rerender = "r", -- Rerender image
|
||||||
|
}
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
| Options within `keymap` | Default Value | Description |
|
||||||
|
|----------------------------|-------------------------|------------------------------------|
|
||||||
|
| `move_left` | `{"<Left>", "h"}` | Moves the image left |
|
||||||
|
| `move_right` | `{"<Right>", "l"}` | Moves the image right |
|
||||||
|
| `move_down` | `{"<Down>", "j"}` | Moves the image down |
|
||||||
|
| `move_up` | `{"<Up>", "k"}` | Moves the image up |
|
||||||
|
| `zoom_in` | `{"=", "+"}` | Zooms into the image |
|
||||||
|
| `zoom_out` | `{"-", "_"}` | Zooms out of the image |
|
||||||
|
| `rotate_clockwise` | `"t"` | Rotates the image clockwise |
|
||||||
|
| `rotate_counterclockwise` | `"T"` | Rotates the image counterclockwise |
|
||||||
|
| `reset` | `"o"` | Resets the image |
|
||||||
|
| `rerender` | `"r"` | Rerenders the image |
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
USAGE
|
||||||
|
|
||||||
|
1. Open an image file in Neovim.
|
||||||
|
2. Use the configured keymaps to move, zoom, or rotate the image.
|
||||||
|
3. Press `o` to reset the image to its original state.
|
||||||
|
4. Press `r` to force a re-render.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
HELP
|
||||||
|
|
||||||
|
To view this help file inside Neovim, use:
|
||||||
|
|
||||||
|
:help picvim
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
|
||||||
|
*EOF*
|
||||||
Reference in New Issue
Block a user