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

Node module completion just completes core modules #59

Closed
dNitro opened this issue Nov 27, 2016 · 2 comments
Closed

Node module completion just completes core modules #59

dNitro opened this issue Nov 27, 2016 · 2 comments

Comments

@dNitro
Copy link
Contributor

dNitro commented Nov 27, 2016

When i require built in node modules like: path, http, ... i get all possible completion items on them after hitting . ( | is cursor position ):

var path = require('path');
path.|   // <-- Here i get all possible items as soon as i hit DOT

But if i require a module like: lodash i get nothing!

var lodash = require('lodash');
lodash.|   // <-- Here i get nothing after hitting DOT 
           //     Also manually feed <C-x><C-u> echos 'pattern not found'

Even using modules just do completions First Time that i require them, and if i close vim and come back to edit same file i don't get completions anymore:
foo.js

module.exports = {
  version: '0.1.0'
}

app.js

var foo = require('./foo');
foo.|   // <-- Here i get *version* just first time if i directly come from foo and require it
        //     and if i close vim and come back i get: 'pattern not found' on hitting DOT
        //     or <C-x><C-u> manually.
@dNitro dNitro changed the title Javascript module completion just completes core modules. Javascript module completion just completes core modules Nov 27, 2016
@dNitro dNitro changed the title Javascript module completion just completes core modules Node module completion just completes core modules Nov 27, 2016
@maralla
Copy link
Owner

maralla commented Feb 4, 2017

This issue has been fixed by pr #73.

@dNitro
Copy link
Contributor Author

dNitro commented Feb 8, 2017

Thanks @maralla , a fast completor plugin now much enjoyable.

@dNitro dNitro closed this as completed Feb 8, 2017
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

No branches or pull requests

2 participants