Jed
bc2325419e
Feature/improve jsdoc ( #210 )
...
* search identifiers recursively to get assignments identifiers
* improves jsdoc template
2025-02-19 11:51:09 +01:00
danymat
d633d2ef57
fix: Delete old print
2025-02-08 13:50:57 +01:00
danymat
aeea21f7c3
fix(snippet): Double $ in snippet template
...
Closes #207
Due to $ being automatically interpreted as snippet variables, we need
to double the $ in the template to let it pass when generating the
snippet. Solves issues with php parameters that have their $ deleted
when using snippets.
2025-02-08 13:48:31 +01:00
Evgeni Chasnovski
b2e7870887
feat: add support for mini snippet engine ('mini.snippets') ( #206 )
2024-12-27 10:32:11 +01:00
Christoph Hasse
37dd095892
fix(python): ensure Raises: section is after Returns: section in google style ( #194 )
2024-12-04 22:22:16 +01:00
Michael Härtl
e3b8f6dca1
Issue #198 Support java types: class and record fields, enum constants ( #199 )
2024-11-12 19:47:37 +01:00
J
d242dd3462
docs: mark opts parameter as optional in generate function ( #195 )
...
Update the LuaLS/EmmyLua annotation for the `generate` function to explicitly mark the `opts` parameter as optional.
This change aligns the documentation with the existing implementation and resolves language server warnings when calling the function without arguments.
2024-08-22 10:40:50 +02:00
Michael Härtl
dc50715c00
fix(java): support record annotation in java ( #182 ) ( #192 )
2024-08-13 11:48:48 +02:00
Michael Härtl
88698b12c3
fix: support interfaces in Java and PHP ( #183 )
...
Closes #182
2024-08-02 16:37:02 +02:00
Colin Kennedy
f9040ed838
fix(python): Fixed nested return + yield call ( #190 )
2024-08-02 16:30:43 +02:00
Colin Kennedy
8614bcb6c6
feat(python): fixed bugs + added unittests ( #189 )
2024-08-02 16:21:10 +02:00
Cristóbal Tapia
7545cdc8cd
feat(julia): Add julia support ( #185 )
...
Add support for julia function and structs + test cases included.
Closes #184
---------
Co-authored-by: josephsdavid <josephsd@smu.edu >
Co-authored-by: Daniel Mathiot <d.danymat@gmail.com >
2024-07-28 14:09:51 +02:00
Colin Kennedy
fef1ab3932
Added unittest + basic python and lua unittests ( #174 )
...
---------
Co-authored-by: Danymat <d.danymat@gmail.com >
2024-07-23 18:18:14 +02:00
Andres Mendez
6de0add480
fix: functions with only bare returns now evaluate properly ( #171 )
2024-05-13 14:49:42 +02:00
Pavel Zolotarevskiy
e7be3a9022
fix: add a missing newline in numpydoc template ( #177 )
2024-05-13 14:47:50 +02:00
Colin Kennedy
0daffcec24
Added parse rule for exceptions from a module ( #168 )
2024-03-23 08:22:10 +01:00
danymat
e5460f2ad8
feat(py): Add support for @dataclass attributes
...
Closes #126
2024-03-03 23:06:04 +01:00
Colin Kennedy
3f65d096aa
fix(py): Python returns now respect nested functions ( #158 )
...
* Added validate_direct_returns
Added missing statement
* doc: Version
* doc: Version
---------
Co-authored-by: danymat <d.danymat@gmail.com >
2024-03-03 22:08:47 +01:00
Sachin Rawat
f10d046863
Add support for nvim snippet engine (vim.snippet) ( #164 )
...
* doc: Add reference to `:h vim.snippet`
* doc: Update docs
---------
Co-authored-by: danymat <d.danymat@gmail.com >
2024-03-03 21:56:10 +01:00
Amaan Qureshi
a9641d131c
Remove usage of nvim-treesitter utilities ( #152 )
...
`vim.treesitter` is now shipped, therefore nvim-treesitter plugin is not needed anymore as a requirement.
References to nvim-treesitter was deleted in the code and the README points to `:h treesitter-parsers`
---------
Co-authored-by: danymat <d.danymat@gmail.com >
2024-03-03 21:42:36 +01:00
pseudometa
70127baaff
fix: no surrounding spaces for one-line-docstring ( #154 )
2023-09-09 13:12:20 +02:00
Colin Kennedy
cb1f384df8
Python nested function fix - inner functions do not strip their first parameter ( #151 )
2023-06-09 02:34:48 +02:00
danymat
2f154166b4
fix(py): Only count first identifier in default_parameter ( fix #148 )
...
Default parameters such as:
```python
def test(foo=delimiter):
pass
```
where counting `delimiter` as Parameters. To fix that, I only return the first child in a `default_parameter` tree
2023-06-07 21:56:21 +02:00
Colin Kennedy
a9f560b490
feat(py): Added Python "Yields:" support for Google-style docstrings ( #147 )
...
* Added basic Python yield support
Removed syntax error
Added missing docstring
Added missing end statement
* Bumped the minor version to 2.15.0
2023-06-07 19:33:17 +02:00
Colin Kennedy
63f994fc79
fix(python): Bare-returns are filtered from docstring output ( #145 )
...
* Python docstrings - bare-returns are filtered from docstring output
* Stylua
* doc: Version
---------
Co-authored-by: danymat <d.danymat@gmail.com >
2023-05-31 13:21:30 +02:00
Colin Kennedy
a113ca9a54
feat(python): Add Raises: block for google_docstrings ( #143 )
...
* Added Google docstring Raises: block
* Added Google docstring change to the Changelog
* Fixed duplicate "Raises:" block, for Python google-style docstrings
* doc: Version
---------
Co-authored-by: danymat <d.danymat@gmail.com >
2023-05-31 13:03:58 +02:00
Colin Kennedy
e449d5b7ff
fix(python) Do not duplicate "Throw" annotations ( #142 )
...
* Fixed Python docstring duplicate throw parsing error
* ref(python): remove unecessary recursive
* Stylua
---------
Co-authored-by: danymat <d.danymat@gmail.com >
2023-05-31 12:50:53 +02:00
danymat
de603d2f83
fix(php): Do not duplicate returns ( #138 )
2023-05-22 13:07:41 +02:00
danymat
84e6f5b714
fix: stylua
2023-05-12 17:31:04 +02:00
Yuta Katayama
353c5ef8e5
fix: Use vim.treesitter.get_node_text() to avoid deprecation warning ( #135 )
...
* fix: Use vim.treesitter.get_node_text() to avoid deprecation warning
* ref: Bump neogen version
---------
Co-authored-by: danymat <d.danymat@gmail.com >
2023-03-27 20:42:17 +02:00
danymat
b460ab70df
ref: Bump neogen version
2023-02-21 11:00:35 +01:00
Yuta Katayama
297795f3cd
fix: Rename ts_utils.get_node_range -> vim.treesitter.get_node_range
2023-02-12 23:36:51 +09:00
itepechi
9a781be7f6
fix(js/ts): {JS,TS}Doc should always start with two asterisks
2023-01-15 18:51:36 +09:00
danymat
5a9ac284d4
ref: Versioning
2023-01-12 22:37:18 +01:00
danymat
ffefbd27ba
ref: Use typed parameters
2023-01-12 22:30:28 +01:00
Chris Brendel
6514bb1b50
removed type from docstring when type hint is given
2023-01-12 15:29:09 -05:00
Chris Brendel
56620c0191
restored behavior removing self/cls argument for func in class
2023-01-12 15:27:55 -05:00
Chris Brendel
41fe4ba304
allow instantiated exceptions to be extracted
2023-01-12 15:23:55 -05:00
danymat
eb2841043a
ref: Versioning
2023-01-06 11:49:19 +01:00
yorik1984
83f9c12453
Update ruby.lua
2023-01-06 04:02:41 +02:00
danymat
d7891401e0
Merge remote-tracking branch 'origin/main' into autodetect_type
2023-01-03 01:09:41 +01:00
danymat
ed6ce9998c
ref: versioning
2023-01-03 01:08:06 +01:00
Sabu Siyad
676e6a9a42
fix: change error when no annotation convention is found
...
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
2023-01-03 00:52:30 +05:30
Sabu Siyad
aae0d3062b
doc: generate function: add any to opts
...
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
2023-01-03 00:21:47 +05:30
Sabu Siyad
a7f0e7051e
doc: annotate populate_filetype function
...
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
2023-01-03 00:16:59 +05:30
Sabu Siyad
62ce187699
fix(generator): replace "any" -> ANY_TYPE
...
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
2022-12-29 00:39:54 +05:30
Daniel
254301a044
Fix python docstrings ( #120 )
...
* fix(py): Return "Args:" if parameters
* fix(py): catch typed default parameters
2022-12-28 11:43:40 +01:00
Barak Michener
2c454f7e68
Add annotation type autodetection
...
Creates a new generate() type, `any`, which contextually adds an
annotation by whichever matching type is first found in the tree around
the cursor.
So, if your cursor is in a function, it will annotate the function, if
in a class or struct definition, it'll annotate that, etc.
Co-authored-by: Sabu Siyad <hello@ssiyad.com >
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
2022-11-14 17:31:08 +05:30
danymat
4246ca824b
fix(ts): Do not relative position for fallback ( #113 )
2022-11-10 20:06:10 +01:00
Omar Zeghouani
5bf646e91c
Update godoc file template ( #114 )
...
Co-authored-by: danymat <d.danymat@gmail.com >
2022-11-10 18:05:11 +01:00