Skip to content

Commit

Permalink
fix shields & typos
Browse files Browse the repository at this point in the history
  • Loading branch information
VoxelPrismatic committed Jun 6, 2024
1 parent 668185c commit b135c29
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 17 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[rabbit.history]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FVoxelPrismatic%2Frabbit.nvim%2Fmain%2Flua%2Frabbit%2Fplugins%2FVERSION.json&query=%24.history&label=History&labelColor=white&color=yellow
[rabbit.oxide]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FVoxelPrismatic%2Frabbit.nvim%2Fmain%2Flua%2Frabbit%2Fplugins%2FVERSION.json&query=%24.oxide&label=Oxide&labelColor=white&color=yellow
[rabbit.harpoon]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FVoxelPrismatic%2Frabbit.nvim%2Fmain%2Flua%2Frabbit%2Fplugins%2FVERSION.json&query=%24.harpoon&label=Harpoon&labelColor=white&color=yellow
[rabbit.reopen]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FVoxelPrismatic%2Frabbit.nvim%2Fmain%2Flua%2Frabbit%2Fplugins%2FVERSION.json&query=%24.reopen&label=Reopen&labelColor=white&color=yellow

<div align="center">
<img src="/rabbit.png" width="368" alt="logo"/>
<h2 id="rabbitnvim">Jump between buffers faster than ever before</h2>
Expand Down Expand Up @@ -36,6 +41,10 @@
- [Configuration](#configuration)
- [Preview](#preview)
- [Plugins](/lua/rabbit/plugins)
- ![history][rabbit.history]
- ![reopen][rabbit.reopen]
- ![oxide][rabbit.oxide]
- ![harpoon][rabbit.harpoon]
- [API](#api)
- [Using Rabbit](#using-rabbit)
- [Internals](#internals)
Expand Down Expand Up @@ -285,7 +294,8 @@ rabbit.autocmd(evt) -- Calls ensure_listing, and runs all relevant p
```

### Create your own Rabbit listing
All luadoc information is included in [./lua/rabbit/doc](/lua/rabbit/doc)
All luadoc information is included in [luadoc](/lua/rabbit/luadoc)
> Whatever flavor luals uses. It isn't ldoc.
Just remember to call `rabbit.setup()` before calling `rabbit.attach(plugin)`.

Expand Down Expand Up @@ -342,11 +352,11 @@ local M = {
evt = {
-- Event handlers. Key names should be the Autocmd name, like `BufEnter` or `BufDelete`. Only these two
-- events are automatically registered by Rabbit.
--
},

opts = {}, -- Plugin specific options you'd like to set


-- Initializer, if you need it. The first parameter is the plugin object so Ldoc doesn't scream at you.
-- In the case of Oxide, it reads the memory file and sets `M.listing[0]`
init = function(_) end,
Expand Down
37 changes: 22 additions & 15 deletions lua/rabbit/plugins/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
[history]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FVoxelPrismatic%2Frabbit.nvim%2Fmain%2Flua%2Frabbit%2Fplugins%2FVERSION.json&query=%24.history&label=History&labelColor=white&color=yellow
[oxide]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FVoxelPrismatic%2Frabbit.nvim%2Fmain%2Flua%2Frabbit%2Fplugins%2FVERSION.json&query=%24.oxide&label=Oxide&labelColor=white&color=yellow
[harpoon]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FVoxelPrismatic%2Frabbit.nvim%2Fmain%2Flua%2Frabbit%2Fplugins%2FVERSION.json&query=%24.harpoon&label=Harpoon&labelColor=white&color=yellow
[reopen]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FVoxelPrismatic%2Frabbit.nvim%2Fmain%2Flua%2Frabbit%2Fplugins%2FVERSION.json&query=%24.reopen&label=Reopen&labelColor=white&color=yellow

# Plugins
This describes the currently available plugins and their configuration options

## History
## History ![history][history]
Sorts all the buffers this window has visited, in order of most recent visit
```lua
require("rabbit").setup({
Expand All @@ -12,7 +17,7 @@ require("rabbit").setup({
```
<details>
<summary><h3>Changelog</h3></summary>
<ol>
<ul>
<li>
<b>v2</b>
<ul>
Expand All @@ -26,18 +31,19 @@ require("rabbit").setup({
<li>Initial verson</li>
</ul>
</li>
</ol>
</ul>
</details>
<hr/>


## Reopen
## Reopen ![reopen][reopen]
Sorts all the buffers this window has closed, in order of most recent close
```lua
-- No options supported
```
<details>
<summary><h3>Changelog</h3></summary>
<ol>
<ul>
<li>
<b>v2</b>
<ul>
Expand All @@ -50,11 +56,11 @@ Sorts all the buffers this window has closed, in order of most recent close
<li>Initial verson</li>
</ul>
</li>
</ol>
</ul>
</details>
<hr/>


## Oxide
## Oxide ![oxide][oxide]
Like zoxide, but saves how often you open a particular file from your current directory
```lua
require("rabbit").setup({
Expand All @@ -66,7 +72,7 @@ require("rabbit").setup({
```
<details>
<summary><h3>Changelog</h3></summary>
<ol>
<ul>
<li>
<b>v3</b>
<ul>
Expand All @@ -87,12 +93,13 @@ require("rabbit").setup({
<li>Initial verson</li>
</ul>
</li>
</ol>
</ul>
</details>
<hr/>


## Harpoon
Like [ThePrimeagen/Harpoon][harpoon2], as far as I know.
## Harpoon ![harpoon][harpoon]
Like [ThePrimeagen/Harpoon][https://github.com/ThePrimeagen/harpoon/tree/harpoon2], as far as I know.
```lua
require("rabbit").setup({
plugins_opts = { harpoon = { opts = { ---@type Rabbit.Plugin.Harpoon.Options
Expand All @@ -102,13 +109,13 @@ require("rabbit").setup({
```
<details>
<summary><h3>Changelog</h3></summary>
<ol>
<ul>
<li>
<b>v1</b>
<ul>
<li>Initial verson</li>
</ul>
</li>
</ol>
</ul>
</details>
[harpoon2]: https://github.com/ThePrimeagen/harpoon/tree/harpoon2
<hr/>

0 comments on commit b135c29

Please sign in to comment.