{
"Massolari/forem.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
"rcarriga/nvim-notify"
}
}
use {
"Massolari/forem.nvim",
requires = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
"rcarriga/nvim-notify"
}
}
[!NOTE] These instructions are for the dev.to platform.
First, you need to generate an API key for the DEV platform.
For dev.to, you can do it in the end of the extension's page
With your API key, you just need to set it into the FOREM_API_KEY
environment variable.
The plugin has the following commands and functions available in forem-nvim
module:
function | command | description |
---|---|---|
feed() |
:Forem feed |
Shows fresh articles from the feed, then you can read it in Neovim or open it in the browser |
my_articles() |
:Forem my_articles |
Shows all your articles, then you can pick one to edit |
new_article() |
:Forem new_article |
Asks for a title, then creates an article with the given title and open it to edit |
open_by_url() |
:Forem open_by_url |
Asks for a URL, then opens the article |
After you save the buffer it'll automatically be saved in the cloud.
Please, don't hesitate in contributing by creating issues and opening pull requests.
This plugin design and idea was inspired by octo.nvim