danymat
cb3569dda1
feat: add extmarks on jumps
2022-01-09 21:36:34 +01:00
danymat
e3445e8f88
feat: Allow multiple jumps in the same line ( #9 )
2022-01-09 20:03:10 +01:00
danymat
4227f608b2
feat(rust) Add support for rust (func, file) #34
2022-01-09 16:29:50 +01:00
danymat
d16557c3e6
feat: Allow users to jump previous ( #13 )
2022-01-07 19:44:41 +01:00
danymat
feaeb35c2c
breaking_change : Deprecate jump_map in favor of user keybind ( Closes #27 )
2021-11-18 14:27:26 +01:00
danymat
d7a26c15ab
ref: Add future deprecation notices for jump_map
2021-11-18 12:42:12 +01:00
danymat
8e8cdad400
fix: Use only filetype tree for generation ( #26 )
2021-11-13 14:29:15 +01:00
danymat
d035281978
chore: stylua
2021-11-10 11:41:10 +01:00
danymat
e4e09d6113
(cpp) Add support for cpp (based on c)
2021-11-08 19:59:13 +01:00
danymat
5a1fc5e483
(java) Add support for java classes
2021-11-03 10:53:04 +01:00
Daniel Mathiot
91c10304d4
(typescript) Add support for typescript
2021-09-29 15:02:15 +02:00
Daniel Mathiot
ba98b965e6
(go) Add support for godoc
2021-09-12 19:42:29 +02:00
Daniel Mathiot
7b8631697d
(lua) Fix nested functions sometimes not being found
2021-09-12 17:45:36 +02:00
Daniel Mathiot
86456a3699
<Tab> only works if you're in annotated range
2021-09-08 12:25:11 +02:00
Daniel Mathiot
499a4301fa
Fix first time insert mode
...
I did a silly workaround because when at normal mode and going to insert
mode, it is not the same as being in insert mode and going to insert
mode. Somehow the cursor jumping is broken.
So what i did was to call a insert_mode a first time before any actual
jumping.
2021-08-28 01:31:51 +02:00
Daniel Mathiot
56b20fcd11
Fix default behaviour when no input after cursor
2021-08-28 00:39:13 +02:00
Daniel Mathiot
e9cc44266e
Add jumpable method
2021-08-27 23:29:44 +02:00
Daniel Mathiot
c5bc73cb27
Add jump mapping to configuration
2021-08-27 22:36:44 +02:00
Daniel Mathiot
c9ba1dcc5d
Created wrapped around jump + Doc
...
You can now jump to next annotation field with:
require('neogen').jump_next()
Added docs for cursor utilities
2021-08-27 22:10:14 +02:00
Daniel Mathiot
1e1b780877
Add space after input field
2021-08-27 22:02:50 +02:00
Daniel Mathiot
6c89fd0714
Delete previous marks before adding new ones
...
It was causing some issues when there were still extmarks left and we
generated annotation just after
2021-08-27 21:46:19 +02:00
Daniel Mathiot
1d97f1415e
Add default value for template
2021-08-27 21:19:19 +02:00
Daniel Mathiot
2c9936781f
Add multiple cursor positioning to template
2021-08-27 20:23:48 +02:00
Daniel Mathiot
80383b7004
Remove unused condition for input_after_comment
...
It should fix the issue #8
2021-08-27 13:35:03 +02:00
Andreas Schneider
29679840d6
Add support for C-doxygen
2021-08-27 12:00:07 +02:00
Daniel Mathiot
d90b697104
Only append annotation if there's one
2021-08-26 12:27:56 +02:00
Daniel Mathiot
a8954178da
(lua) add type annotation for variables
2021-08-25 14:13:32 +02:00
Daniel Mathiot
1002ae5948
Add support for multiple types, see Readme:Usage
2021-08-25 13:39:55 +02:00
Daniel Mathiot
b58292f71f
Add default comments when no results (python, lua)
2021-08-24 17:06:32 +02:00
Daniel Mathiot
3a40a1d111
Add support for empty jsdoc comment
2021-08-24 12:09:43 +02:00
Daniel Mathiot
98329fcf77
Add basic support for javascript
...
At the moment, it recognizes simple functions, their params and their
direct return statements.
2021-08-24 11:43:45 +02:00
Daniel Mathiot
77515a574d
Refactor to a simpler tree parsing
...
You can now parse the syntax tree more efficiently with the new
utilities functions.
For examples, please check out the lua and python configurations
2021-08-24 09:41:15 +02:00
Daniel Mathiot
52128c1bd5
Add utilities
...
After a refactoring of utilities, I added a function to get the first
child node that matches the node name.
Documentation is provided in neogen.utilities.nodes
2021-08-23 16:00:43 +02:00
Daniel Mathiot
40616b25d7
Add python support
...
At the moment, only supports params for function definitions.
I added more options to configure the default generator (please see the
templates field in configuration/python.lua)
2021-08-23 12:53:27 +02:00
Daniel Mathiot
dd54ea7708
Specify template convention in lua
2021-08-23 10:51:29 +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
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