deoplete-clang2 icon indicating copy to clipboard operation
deoplete-clang2 copied to clipboard

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

Open wsdjeg opened this issue 8 years ago • 2 comments

@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 avatar Jan 29 '17 16:01 wsdjeg

@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.

tweekmonster avatar Jan 29 '17 18:01 tweekmonster

hi @tweekmonster ,can you solve the this problem?

v-leonhou avatar Feb 26 '19 10:02 v-leonhou