Comments (9)
Hm yes after refactoring I moved this function, so the #data
doesn't seem to help here
from neogen.
Also it would be great if you could set a marker where the cursor should be located, like:
{ nil, " * @brief ", { set_cursor = true } },
And then you start inserting at the end of this line.
from neogen.
Also it would be great if you could set a marker where the cursor should be located, like:
{ nil, " * @brief ", { set_cursor = true } },
And then you start inserting at the end of this line.
Yes I think that's exactly #3
from neogen.
can you update and try out if 80383b7 solves the issue?
from neogen.
Yes, it works now. The set_cursor feature would be nice :-)
from neogen.
Yes, it works now. The set_cursor feature would be nice :-)
I close the issue then. About the set_cursor feature, feel free to subscribe to the issue, I will start working on it soon
from neogen.
@cryptomilk I added the feature to position the cursor:
- In order to add a new positioning, you can set
$1
. - To add a default value alongside the positioning, you can set
$1|any
for example - There's a default key bind to jump between them, which is
<C-e>
in insert mode after generating the annotations (configurable in setup).
template = {
annotation_convention = "doxygen",
use_default_comment = false,
doxygen = {
{ nil, "/* */", { no_results = true } },
{ nil, "/**" },
{ nil, " * @brief $1" },
{ nil, " *" },
{ "parameters", " * @param[in] %s $1" },
{ "return_statement", " * @returns $1" },
{ nil, " */" },
},
},
The support for c is already here, you can check out! Don't forget to tell if you like it
from neogen.
Very nice, I tried it quickly, but doesn't work for me:
E5108: Error executing lua neogen/lua/neogen/utilities/cursor.lua:17: attempt to call global 'P' (a nil value)
I can't find a P function in the code ...
from neogen.
Ouch sorry, I let a small personal variable. Should be fixed !
I added the documentation here: https://github.com/danymat/neogen#cycle-between-annotations
from neogen.
Related Issues (20)
- `Invalid 'end_col': out of range` error whenever running `Neogen file` HOT 2
- Bug: handling of arbitrary args and kwargs with type hints HOT 1
- Allow generating explicit sections HOT 3
- Update / Correction command HOT 2
- Python - raise module_name.Error() is not detected
- Bug: Neogen not functioning in vue files. HOT 2
- Could not get neogen to work with LazyVim HOT 4
- Need unittests HOT 1
- Missing blank line in numpydoc
- Option to always disable writing argument types in Python HOT 2
- FR: support creating annotations in Markdown code blocks HOT 1
- Sometimes native snippets do not expand on tab
- Add support for records in C# HOT 2
- Support annotating interfaces HOT 2
- Help implementing doctrings for Julia HOT 4
- Annotate all nodes in a file or ones from visual selection HOT 1
- Fix Python bugs
- Use Release Please to simplify neogen versioning
- Python: Should Raises be after Return in google style? HOT 1
- Error While Generating File Documents
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neogen.