Skip to content
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

Allow definition of a custom database in vim config #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gburger11
Copy link

In my company, we have some custom conventions of import … as …, so it was very convenient for me to be able to add in my vim config a custom database. I did this change on my computer and I can propose to integrate it in the main project.

With this change, a user can define in their vim config a custom usage such as :

let g:autoimport#python#db_import_as = {
            \ 'typing': 'tp',
            \ 'nevergrad': 'ng'
            \ }

let g:autoimport#python#db_import = {
            \ 'tiger': v:null,
            \ 'pinocchio': ['Quaternion', 'SE3']
            \ }

I have chosen the name to make it easier to extend the package to other languages if need be.

In the same time, I have added __pycache__ in the .gitignore because it was polluting my git diff output, but I can remove this change as it is not related with the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant