1
1
# Forem.nvim
2
2
3
- <p align =" center " >This plugin integrates Neovim with Forem platforms (for example, dev.to)</p >
3
+ <p align =" center " >This plugin integrates Neovim with Forem platforms like [dev.to](https:// dev.to)</p >
4
4
5
5
https://user-images.githubusercontent.com/12272702/175755820-a2b93f4b-fd5c-416b-8b9e-d981335ef75c.mov
6
6
@@ -38,20 +38,37 @@ https://user-images.githubusercontent.com/12272702/175755866-62be0b6c-31b2-4f45-
38
38
39
39
## Installation
40
40
41
- Using [ packer] ( https://github.com/wbthomason/packer.nvim ) :
41
+ ### Using [ lazy] ( https://github.com/folke/lazy.nvim ) :
42
+
43
+ ``` lua
44
+ {
45
+ " Massolari/forem.nvim" ,
46
+ dependencies = {
47
+ " nvim-lua/plenary.nvim" ,
48
+ " nvim-telescope/telescope.nvim" ,
49
+ " rcarriga/nvim-notify"
50
+ }
51
+ }
52
+ ```
53
+
54
+ ### Using [ packer] ( https://github.com/wbthomason/packer.nvim ) :
42
55
43
56
``` lua
44
57
use {
45
58
" Massolari/forem.nvim" ,
46
59
requires = {
47
60
" nvim-lua/plenary.nvim" ,
48
- " nvim-telescope/telescope.nvim"
61
+ " nvim-telescope/telescope.nvim" ,
62
+ " rcarriga/nvim-notify"
49
63
}
50
64
}
51
65
```
52
66
53
67
## Setup
54
68
69
+ > [ !NOTE]
70
+ > These instructions are for the dev.to platform.
71
+
55
72
First, you need to generate an API key for the DEV platform.
56
73
57
74
For dev.to, you can do it in [ the end of the extension's page] ( https://dev.to/settings/extensions )
@@ -62,17 +79,15 @@ With your API key, you just need to set it into the `FOREM_API_KEY` environment
62
79
63
80
The plugin has the following commands and functions available in ` forem-nvim ` module:
64
81
65
- | function | command | description |
66
- | --- | --- | --- |
67
- | ` feed() ` | ` :Forem feed ` | Shows fresh articles from the feed, then you can read it in Neovim or open it in the browser |
68
- | ` my_articles() ` | ` :Forem my_articles ` | Shows all your articles, then you can pick one to edit |
69
- | ` new_article() ` | ` :Forem new_article ` | Asks for a title, then creates an article with the given title and open it to edit |
70
- | ` open_by_url() ` | ` :Forem open_by_url ` | Asks for an URL, then opens the article |
82
+ | function | command | description |
83
+ | --------------- | -------------------- | ----------------------------------------------------------------------------------------- --- |
84
+ | ` feed() ` | ` :Forem feed ` | Shows fresh articles from the feed, then you can read it in Neovim or open it in the browser |
85
+ | ` my_articles() ` | ` :Forem my_articles ` | Shows all your articles, then you can pick one to edit |
86
+ | ` new_article() ` | ` :Forem new_article ` | Asks for a title, then creates an article with the given title and open it to edit |
87
+ | ` open_by_url() ` | ` :Forem open_by_url ` | Asks for a URL, then opens the article |
71
88
72
89
After you save the buffer it'll automatically be saved in the cloud.
73
90
74
- ** Note: these functions will only be available after the ` setup ` call**
75
-
76
91
## Contributing
77
92
78
93
Please, don't hesitate in contributing by creating issues and opening pull requests.
0 commit comments