-
Notifications
You must be signed in to change notification settings - Fork 34
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
refactor utils #141
refactor utils #141
Conversation
this diff is large due to the removal of a duplicate select_range function that seems to be a copy/paste error. This adds a parameter and simplifies the logic for normalizing the v_table values
2ac28da
to
dd47702
Compare
Thanks for the contribution @aarondill, this is a big change which needs to be heavily tested.. might worth to split to multiple PRS? |
This more clearly describes what it returns. script_path is replaced with script_dir which returns a value based on the currently running file note: module_dir relies on utils.lua's location, and will break if the file is moved
use { current_position() } for the old behavior. This is unused in the code base. should it be removed?
…tr=='' This special case seems to be unused in the codebase and is very unintuitive.
Slight code changes, no behavior changes.
table.pack can't be used here because neovim functions will error if a `n` key is present.
dd47702
to
1c329f6
Compare
@amirbilu sorry for never responding. I can split this up (and probably should). I can see this being split into three PRs:
the first two would be fairly small, but the third would still have a large (green) diff, as non of the functions currently have types, and would now all need comments describing the types. |
Refactors the
tabnine.utils
module to add types and fix some minor issues.The list of commits is below. Each commit should include a description of the change (or be self-evident).