Commit Graph

299 Commits

Author SHA1 Message Date
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
root
da04629ffa fix(python): Check for assignment to non-attributes in class (#107) 2022-11-03 00:07:40 +01:00
danymat
c9ee823ec2 fix: Remove old print 2022-10-21 16:30:57 +02:00
danymat
0f70a414fa feat(py) Better copy of nodes to generator (#106) 2022-10-21 16:29:44 +02:00
danymat
b1e56c5263 fix(ts) Do not offset function annotations (#111) 2022-10-20 13:33:22 +02:00
danymat
8624a73c86 feat(python): Add support for throw statements
Closes #106

Support currently reST annotations
2022-10-17 12:35:53 +02:00
danymat
e307833f26 fix(python): remove hints for typed parameters (#106) 2022-10-17 12:16:50 +02:00
danymat
bc6b0851ec fix(ts): Indentation in functions (Closes #111) 2022-10-17 11:30:34 +02:00
Reagan
e8c62b63f8 * feat(snippet): Add support for vsnip
Co-authored-by: danymat <d.danymat@gmail.com>
2022-10-15 23:59:30 +02:00
Elkiders99
c53bc48033 fix(luasnip) Do not remove snippet indent (#110)
* Breaking change fix in luasnip `parse_snippet`
Co-authored-by: Agustin Romero <agustin.romero@mercadolibre.com>
2022-09-22 10:26:06 +02:00
Daniel Mathiot
c5a0c39753 Merge branch 'main' into throws-statement-java 2022-06-15 19:13:07 +02:00
Dhruv Manilawala
110c307ddf feat: add option to specify annotation convention (#97)
To know more about this new version, please visit `:h neogen-changelog` !
2022-06-15 11:16:09 +02:00
i3Cheese
17dd80c236 feat(snippets): Add snippy support (#93) 2022-06-15 10:45:46 +02:00
Daniel Mathiot
d5326a114a fix: Return value instead of table in get_node_text
Closes #99
2022-06-15 10:36:35 +02:00
Daniel Mathiot
08c88e2a85 ref(helpers) Improve get_node_text deprecation 2022-06-14 19:08:46 +02:00
Daniel Mathiot
3a37832265 fix: deprecate ts_utils get_node_text #88 (#98) 2022-06-13 08:33:43 +02:00
Daniel Mathiot
668b3ad04d feat(java) Improve throws statements (#91) 2022-05-05 10:18:53 +02:00
Mikael Elkiær
a4b2fd5ba5 Adds generic mapping of filetype to ts parser name (#89)
* Revert "Rename cs.lua to c_sharp.lua"

This reverts commit 32adfde9b0.

* Adds generic mapping of filetype to ts parser name
2022-05-04 14:09:20 +02:00
Daniel Mathiot
32adfde9b0 Rename cs.lua to c_sharp.lua 2022-04-27 14:17:39 +02:00
Zoe Roux
f249a70ee5 C# improvements (#86)
* fix: Fixing csharp docs for interfaces

* feat(csharp): adding type params support
2022-04-01 17:37:03 +02:00
danymat
19c7045745 chore: update docs 2022-03-13 16:10:27 +01:00
mg979
c9ac5a6fd8 Placeholder support for snippet engines (#76)
- Add support for placeholders in snippet insertion !
  None: placeholders are automatically set when using a bundled snippet engine.
  - Add `enable_placeholders` option (see |neogen-configuration|)
  - Add `placeholders_text` option (see |neogen-configuration|)

Co-authored-by: danymat <d.danymat@gmail.com>
2022-03-13 16:05:04 +01:00
danymat
fd86bde7ad chore: Delete old code 2022-03-11 13:32:24 +01:00
danymat
046fdb310c feat(ts) Add support for @template (#79) 2022-03-11 13:31:59 +01:00
danymat
2674428a49 ref(c) Use type name instead of jump (#80) 2022-03-11 10:39:39 +01:00
danymat
1da0dd9e56 feat(c) Add @typedef for doxygen (#80) 2022-03-11 10:37:48 +01:00
danymat
f2aeb078f0 fix(js/ts) Do not duplicate @return (#79) 2022-03-11 10:21:58 +01:00
danymat
8c16efa6f6 doc: Add doc to support new snippet engines 2022-03-09 11:38:09 +01:00
danymat
670494d43a feat(kotlin) Support Generics (#78) 2022-03-09 11:04:41 +01:00
danymat
db5fd708f7 feat(kotlin) Automatically add return annotation for functions
References #78
2022-03-09 10:01:58 +01:00
danymat
92827d0a1c fix(javadoc) Improper placement (#78) 2022-03-08 20:20:33 +01:00
mg979
423360a8cc fix: csharp parameters (#77) 2022-03-06 19:18:45 +01:00
danymat
d449431e95 feat(rb) Add support for tomdoc 2022-03-05 14:17:19 +01:00
danymat
e7043e3ab7 ref(generator) Dedent unecessary else statement 2022-03-05 11:53:30 +01:00
Barak Michener
7e97b9a71e Improve Godoc support (#75)
* Improve Godoc support

Godoc recommends, as per https://go.dev/blog/godoc , that documentation
comments start with the name of the thing being documented.

This adds that, as well as better support for structs and interfaces.

* ref(go) Use `as` keyword in configuration trees

* chore: Bump neogen version

Co-authored-by: danymat <d.danymat@gmail.com>
2022-03-03 10:43:26 +01:00
danymat
b7d2ce8c1d feat(ts) Add support for TSdoc annotation convention (closes #47) 2022-02-26 13:56:45 +01:00
danymat
ea981148a0 chore: delete old text 2022-02-26 12:54:55 +01:00
danymat
0b8157369b chore: Bump neogen version to 2.3.0 2022-02-26 12:51:45 +01:00
mg979
d5f447e5cc Snippet support (#72)
To know more about snippet integration, please visit `:h snippet-integration`, or https://github.com/danymat/neogen#snippet-support !

Co-authored-by: danymat <d.danymat@gmail.com>
2022-02-26 12:48:11 +01:00