-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-detect annotation types #30
Comments
Hello! thanks for chiming in !
In theory we could indeed, but we need to do it well if we're about to do it.
I think it is not a problem if we only have classes, and functions annotations (and templates too). What happens if we have the cursor on a local function test()
local test_var = do_smt() --> cursor on this line will generate a type annotation just before this line
-- this is a comment
end |
I think the behavior in the comment is decent. |
Sorry for putting this feat on hold, as it was the holidays season. I'm thinking about it right now: Do you know what's the logic behind vim-doge automatic selection ? Or better, what do you think will be the best:
priority = { "func", "class", "type", ...} |
I am not familiar with the vim-doge's logic. |
This will have the same complexity (mostly) as this issue (point 2): #53 (comment) I will try to keep this open for a while, in case someone wants to comment |
#116 Implemented this feature, see Neogen 2.11 ! |
vim-doge doesn't need to specify the type to annotate.
Could we have similar features?
The text was updated successfully, but these errors were encountered: