Skip to content

import: call given function instead of prompting#79

Merged
chemzqm merged 2 commits intoneoclide:masterfrom
kovetskiy:master
Apr 10, 2020
Merged

import: call given function instead of prompting#79
chemzqm merged 2 commits intoneoclide:masterfrom
kovetskiy:master

Conversation

@kovetskiy
Copy link
Copy Markdown
Contributor

@kovetskiy kovetskiy commented Apr 9, 2020

This changeset adds an ability to specify a vim function that will be called and
the import candidates will be passed to this function. If the function returns a
result that is not equal to -1 it will be used instead of prompting the user for
choosing type to import.

This ability opens a door for writing custom auto-importers based on existing
project codebase and used imports. For example, an end-user could write a vim
function that will return the most used import from the candidates.

I didn't edit Readme because I'm not sure what release version will be next and left
it for the maintainers of the project.

@chemzqm chemzqm merged commit 84e4b44 into neoclide:master Apr 10, 2020
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.

2 participants