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

options for this plugins should be detect when deoplete-clang2 is loaded. #5

Open
wsdjeg opened this issue Jan 29, 2017 · 2 comments
Open
Labels

Comments

@wsdjeg
Copy link
Collaborator

wsdjeg commented Jan 29, 2017

@tweekmonster
I have this config in my vimrc, but my deoplete is lazy loaded on Insert mode event. so when I open a cpp file, :Neomake clang still get errors about use of undeclared identifier 'nullptr', after I go into insert mode, :Neomake clang will not show issues, so I think the options below is detect when deoplete is loaded.

let g:deoplete#sources#clang#flags = ['--std=c++11']
let g:deoplete#sources#clang#autofill_neomake = 1
@wsdjeg wsdjeg changed the title options for this plugins should be detect when plugin is loaded. options for this plugins should be detect when deoplete-clang2 is loaded. Jan 29, 2017
@tweekmonster
Copy link
Owner

@wsdjeg This is a problem I'm working on. All of the logic for gathering the flags are in the deoplete source. It needs to be moved to a reusable Python module, or ported to VimL and passed in via deoplete's context var.

Right now, the workaround is to first trigger InsertEnter.

@v-leonhou
Copy link

hi @tweekmonster ,can you solve the this problem?

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

No branches or pull requests

3 participants