A Neovim plugin that displays quotes from your Goodreads list - fast and minimal, with a native C backend.
- Fetches and displays a random quote from a Goodreads RSS feed.
- Simple and fast (uses a native C parser).
- Trigger via
:GoodQuoteor<leader>gq. - Fully compatible with lazy.nvim.
Using lazy.nvim:
{
"wulfgarpro/goodquote.nvim",
keys = {
{ "<leader>gq", "<cmd>GoodQuote<CR>", desc = "GoodQuote" },
},
opts = {
rss_url = "https://www.goodreads.com/quotes/list_rss/12541417-james-fraser",
},
}Tip: Replace the RSS URL with your own - available via the "RSS feed" link on your Goodreads quote list.
The plugin defines a single command :GoodQuote.
To lazy-load it, just use a keymap (as shown above). You can also explicitly lazy-load on command:
cmd = "GoodQuote", -- optionalTo disable the keymap:
keys = {
{ "<leader>gq", false },
},- Run
:GoodQuotein Neovim. - Or press
<leader>gqin normal mode.
- Requires
make, a C compiler, and LuaJIT development headers. - The native shared object (
gq.so) is compiled automatically.
MIT @ James Fraser