First commit

This commit is contained in:
Daniel Mathiot
2021-08-17 18:09:17 +02:00
parent 9afae9b3e0
commit b807e2df52
2 changed files with 94 additions and 0 deletions

View File

@@ -1,2 +1,36 @@
# neogen
A better Neovim documentation generator
## Warning
This project is still in alpha !
Work In progress:
- lua: `@return`, `@param`
## Installation
1. Packer
```lua
use {
"danymat/neogen",
config = function()
require('neogen').setup {
enabled = true
}
end
}
```
## Usage
I exposed a command `:Neogen` to generate the annotations.
You can bind it to your keybind of choice:
```lua
vim.api.nvim_set_keymap("n", "<Leader>ng", ":Neogen<CR>", {})
```
If you are inside a function, it'll generate the documentation for you with Emmylua annotation convention