Commit Graph

321 Commits

Author SHA1 Message Date
kevinhwang91
8a75bd7c0d chore:; respect EmmyLua comment 2022-02-06 19:55:50 +08:00
kevinhwang91
be03c71183 fix(generator): check template early 2022-02-06 19:53:17 +08:00
kevinhwang91
98c8cbae80 fix(mark): jumpable() can't detect under first and last marks
The first and the last marks should be included.
2022-02-06 19:45:46 +08:00
kevinhwang91
8642100aea refactor: refactor code base 2022-02-06 12:15:55 +08:00
danymat
7ab042e9e0 doc: Add section :h neogen-annotation 2022-02-04 11:05:47 +01:00
danymat
78d3658349 feat: Add API for custom annotation convention 2022-02-04 11:05:14 +01:00
danymat
11018d4e71 (lua) Update configurations 2022-02-04 10:16:41 +01:00
danymat
701d55f1a7 (lua) Update configurations (#63) 2022-02-04 09:21:02 +01:00
danymat
271260c2d8 fix(cs) Rename configuration file (fix #62) 2022-02-02 23:59:39 +01:00
danymat
84aa3d3cba doc: Add section :h neogen-template-api 2022-02-01 18:56:51 +01:00
danymat
ac7caed0c5 feat: Add API to get template 2022-02-01 18:55:18 +01:00
danymat
f02e883651 fix(py) Disable custom placement for file type (#59) 2022-02-01 15:16:48 +01:00
danymat
1e8fccb924 feat: Allow custom placement to be disabled for certain types 2022-02-01 15:16:00 +01:00
danymat
985baa1380 fix(py) Support typed default parameters (#60) 2022-02-01 15:06:16 +01:00
danymat
189892c9a9 doc: Add section :h neogen.template_configuration 2022-02-01 14:06:08 +01:00
danymat
aaa8d74abf fix(rs) Show typed parameters 2022-02-01 13:12:36 +01:00
danymat
40bfc7e21a ref!: Extract template codes into template dir
I possibly introduced some bugs in the process, please open an issue if
so.

- This is an attempt to refactor the code and provide re-use of templates
(for example, doxygen or jsdoc)
- I standardized the exposed returned nodes for a template (you can view
  it by going to lua/neogen/types/template.lua)
2022-02-01 12:44:36 +01:00
kevinhwang91
efdb89228e fix(lua): missing return statement for function type 2022-02-01 03:34:37 +08:00
Steven Dahdah
ba39487060 Add space before numpydoc colon 2022-01-30 12:57:22 -05:00
danymat
cda1f0a372 fix(py) better handling of static methods 2022-01-30 16:18:49 +01:00
danymat
33fc37b6b7 (py) Update configurations (#51) 2022-01-30 16:04:51 +01:00
danymat
04f784a8c6 feat: jump_next and jump_prev check if cursor is jumpable 2022-01-30 15:46:53 +01:00
danymat
f81e2fa87d (cpp) Update configurations (#55) 2022-01-30 15:36:23 +01:00
Daniel Mathiot
ab67d42563 Merge pull request #54 from AckslD/switch-language-on-setup
feat(init) switch language on setup
2022-01-30 15:08:44 +01:00
Axel Dahlberg
10c39fe98b Update lua/neogen/init.lua
Co-authored-by: Daniel Mathiot <d.danymat@gmail.com>
2022-01-30 15:02:23 +01:00
danymat
d46c438cf5 ref(py) Better handling of class methods (#51) 2022-01-30 14:40:25 +01:00
danymat
4e5b4e94aa ref: Update types 2022-01-30 14:40:18 +01:00
Axel Dahlberg
b3b963999f feat(init) switch language on setup 2022-01-30 14:32:25 +01:00
danymat
f1d8f426fd fix(py) Use spaces instead of tabs (#52) 2022-01-30 14:23:04 +01:00
danymat
815ad7a858 doc: Generates table of contents
Special thanks to:
https://github.com/echasnovski/mini.nvim/issues/40#issuecomment-1025136259
2022-01-30 14:09:34 +01:00
danymat
0d381d03d2 feat(py) None return type does not display returns (#51) 2022-01-29 19:56:14 +01:00
danymat
9b7d6e5e81 fix(py) Remove reference to self in functions 2022-01-29 19:54:07 +01:00
danymat
0d00e05b20 (py) Update configurations (#51) 2022-01-29 19:13:41 +01:00
danymat
6c086dcb2f (py) Update configurations 2022-01-29 18:51:10 +01:00
danymat
64d152e4c5 (py) Update configurations (#46) 2022-01-29 14:52:22 +01:00
danymat
d6b148667d feat(py) Add reST annotation support (#46) 2022-01-29 13:40:39 +01:00
danymat
30f98ed999 feat: Allow index reordering in after_each option template 2022-01-29 13:38:45 +01:00
danymat
fe44b20a57 fix(py) Always get public parameters for classes 2022-01-29 13:06:53 +01:00
danymat
fb707c0fd3 feat: Add support for tsx and jsx (#34) 2022-01-29 12:45:08 +01:00
danymat
94df6a3d9a (py) Update configurations 2022-01-29 11:40:46 +01:00
danymat
01b7213fbd feat: Add fallback node for custom placement 2022-01-29 11:40:32 +01:00
danymat
71a92a7dec feat: Add support for vue 2022-01-29 11:26:47 +01:00
danymat
749764ab7e (py) Update configurations (Fix #41) 2022-01-29 10:59:27 +01:00
danymat
a03cbd18f4 (lua) Update configurations 2022-01-28 22:14:13 +01:00
danymat
a321ae5a62 doc: Update documentation 2022-01-26 15:12:58 +01:00
danymat
68ee776633 feat: Only load language configs for current language
- I subscribed to the BufEnter autocmd to switch language configs.
  Only previously opened languages are kept inside the languages table
2022-01-26 13:00:57 +01:00
danymat
57e76c6102 ref: Code refactoring
- Try to not expose as much commands and code via neogen
- Use minidoc to generate docgen
2022-01-26 11:50:23 +01:00
danymat
c575186ff9 fix(lua) Offset handling for local functions 2022-01-25 21:42:46 +01:00
danymat
291fb5d98c (lua) Update configurations (#43) 2022-01-25 21:12:39 +01:00
danymat
4c6b4e6d5e fix: Do not create error when generating annotation on empty file 2022-01-25 14:29:08 +01:00