Daniel Mathiot 4f639a9d3a Recognize indentation level
The plugin now recognizes indentation level and will write the comments
at the same indentation level as the function.
for example:

function()
    -- this is junk
    -- this is junk

    -- The annotation will be created here
    function()
    end
    -- this is junk
    -- this is junk
end
2021-08-17 21:35:35 +02:00
2021-08-17 21:35:35 +02:00
2021-08-15 22:03:20 +02:00
2021-08-17 18:09:17 +02:00

neogen

A better Neovim documentation generator

Warning

This project is still in alpha !

Work In progress:

  • lua: @return, @param

Installation

  1. Packer
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:

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

Description
A better annotation generator. Supports multiple languages and annotation conventions.
Readme GPL-3.0 5.8 MiB
Languages
Lua 99.2%
Shell 0.4%
Vim Script 0.2%
Makefile 0.2%