Commit Graph

280 Commits

Author SHA1 Message Date
Daniel Mathiot
2eb4f76cc9 Make template.annotation_convention a standard
The default generator will now use the annotation_convention field in
template in order to use the requested template
2021-08-23 11:33:08 +02:00
Daniel Mathiot
dd54ea7708 Specify template convention in lua 2021-08-23 10:51:29 +02:00
Daniel Mathiot
25ef26da35 Update README.md 2021-08-23 10:33:34 +02:00
Daniel Mathiot
50dbd0857f Update README.md 2021-08-23 10:24:42 +02:00
Daniel Mathiot
b85cd29627 Update README.md 2021-08-23 09:16:48 +02:00
Daniel Mathiot
429fec6e3d Update README.md 2021-08-23 09:13:28 +02:00
Daniel Mathiot
4b294e456a Update README.md 2021-08-23 09:08:51 +02:00
Daniel Mathiot
84920a1621 Update README.md 2021-08-23 08:50:07 +02:00
Daniel Mathiot
f6841b699a Update README.md 2021-08-22 13:07:31 +02:00
Daniel Mathiot
95c6a1cfff Update README.md 2021-08-22 12:51:16 +02:00
Daniel Mathiot
83bdedbd60 Update README.md 2021-08-22 12:50:21 +02:00
Daniel Mathiot
e9d99c52a2 Update README.md 2021-08-22 12:19:22 +02:00
Daniel Mathiot
450e55a1d2 Update README.md 2021-08-22 12:16:36 +02:00
Daniel Mathiot
11a2dc1080 Update README.md 2021-08-21 21:56:58 +02:00
Daniel Mathiot
86a20bd992 Update Readme 2021-08-21 21:54:16 +02:00
Daniel Mathiot
8638613f72 Merge pull request #1 from vhyrro/main
Core Rewrite
2021-08-21 18:24:46 +02:00
Daniel Mathiot
96319356fa Add input_after_comment configuration
When set to true (default true), the cursor will go back to the start of
the added comments and trigger insert mode
2021-08-21 18:20:29 +02:00
Daniel Mathiot
ec09985e9d Add return statement for lua
At the moment, it only extracts return statements from direct children
of the function_definition
2021-08-21 18:05:03 +02:00
Daniel Mathiot
ebeb5aa329 Refactor
More documentation, changed function signature
2021-08-21 16:47:49 +02:00
Daniel Mathiot
f42e14f633 Add documentation
Added docs in multiple places, refactored some functions and changed
places.
2021-08-21 07:31:57 +02:00
Daniel Mathiot
c4f3725af7 Refactor
This is a first iteration of refactoring the codebase, and generating
annotations along the way.
Added "variable_declaration" as parent node for lua
2021-08-19 22:42:57 +02:00
Vhyrro
86a600849f feat: rewrite the entire core 2021-08-19 16:43:35 +02:00
Daniel Mathiot
f96f3443f9 Add recording 2021-08-18 17:03:18 +02:00
Daniel Mathiot
d59313daa7 Refs and support for local functions in lua 2021-08-17 22:34:17 +02:00
Daniel Mathiot
dc3c7eb4ea Add query for return statement in an if block 2021-08-17 21:46:09 +02:00
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
Daniel Mathiot
b73d0cba99 Moved description annotation on first line 2021-08-17 18:42:41 +02:00
Daniel Mathiot
11d463b08c Add description on top of annotation 2021-08-17 18:40:20 +02:00
Daniel Mathiot
b807e2df52 First commit 2021-08-17 18:09:17 +02:00
Daniel Mathiot
9afae9b3e0 Initial commit 2021-08-15 22:03:20 +02:00