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

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

Open
Posto578 opened this issue Jan 16, 2018 · 1 comment
Open

Comments

@Posto578
Copy link

Posto578 commented Jan 16, 2018

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!

@ericcurtin
Copy link

Thanks for using my plugin @Posto578 ! I wrote a new little one recently. Feel free to try and star if you like! 😄

https://github.com/ericcurtin/VimBlame.vim

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