Skip to content

No C++11/14 support even if it's explicitly specified in init.vim MacOS #27

@Posto578

Description

@Posto578

OS: Mac OS High Sierra
NVIM: v0.2.2
Deoplete-clang2: 787dd4d

Summarry: There is no functions suggestions from C++11 and above even if
let g:deoplete#sources#clang#std#cpp='c++14' is set.

Everything work fine from C++98.
My init.vim

inoremap jj <esc>
inoremap <C-k> <return>
map <C-n> :NERDTreeToggle<CR>
map <C-s> :call CurtineIncSw()<CR>
map <space> /
map <c-space> ?
vnoremap . :norm.<CR>
let mapleader = "\<Space>"                                                      
set ignorecase
set incsearch

set nu
set nohlsearch
syntax on                                                                       
call plug#begin()
if has('nvim')
  Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
  Plug 'Shougo/deoplete.nvim'
  Plug 'roxma/nvim-yarp'
  Plug 'roxma/vim-hug-neovim-rpc'
endif
Plug 'tpope/vim-surround'
Plug 'Shougo/neopairs.vim'
Plug 'vim-airline/vim-airline'
Plug 'tweekmonster/deoplete-clang2'
Plug 'SirVer/ultisnips'                                                         
Plug 'scrooloose/nerdtree'
Plug 'mhinz/vim-janah'
Plug 'honza/vim-snippets'                                                       
Plug 'neomake/neomake'
Plug 'ericcurtin/CurtineIncSw.vim'
call plug#end()                                                                
let g:neopairs#enable = 1
let g:deoplete#sources#clang#flags = ['-darwin=10.13']
let g:deoplete#enable_at_startup = 1                                            
let g:deoplete#sources#clang#libclang_path="/Library/Developer/CommandLineTools/usr/lib/libclang.dylib"
let g:deoplete#sources#clang#clang_header ="/usr/local/Cellar/llvm/5.0.0/lib/clang"
let g:chromatica#enable_at_startup=1
let g:chromatica#libclang_path="/Library/Developer/CommandLineTools/usr/lib/libclang.dylib"
let g:deoplete#sources#clang#std#cpp='c++14'
"--------------------
" ultisnips
"--------------------
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
"
" ATTENTION: don't map this to keys which are the first part of a 'two part'
" command. E.g. don't map to `<c-g>` because `g` is part of `gt`, `gT`, ...
" This will slow down jupming between tab stops, but only when 'vim-surround'
" is installed.
let g:UltiSnipsExpandTrigger="<C-j>"
let g:UltiSnipsJumpForwardTrigger="<C-j>"
let g:UltiSnipsJumpBackwardTrigger="<C-h>"

" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"

let g:UltiSnipsSnippetDirectories=["mysnippets", "copiedsnippets"]
call neomake#configure#automake('nw', 750)
autocmd ColorScheme janah highlight Normal ctermbg=235
colorscheme janah

obesezanyjapanesebeetle-size_restricted

Interesting fact:
Completion works with no regard for the following globals presence.

g:deoplete#sources#clang#libclang_path="/Library/Developer/CommandLineTools/usr/lib/libclang.dylib"
g:deoplete#sources#clang#clang_header ="/usr/local/Cellar/llvm/5.0.0/lib/clang"

Completion still works although I put this variables in a comment section. Weird!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions