" deoplete
call deoplete#custom#var('omni', 'input_patterns', { 'cpp': ['[^. *\t]\.\w*','[^. *\t]\::\w*','[^. *\t]\->\w*','#include\s*[<"][^>"]*'] })

" Linters
let g:ale_linters.c = ['gcc']
let g:ale_linters.cpp = ['gcc']

" Autoformat
let g:ale_fixers.c = ['clang-format']
let g:ale_fixers.cpp = ['clang-format']

" deoplete
call deoplete#custom#var('omni', 'input_patterns', { 'cpp': ['[^. *\t]\.\w*','[^. *\t]\::\w*','[^. *\t]\->\w*','#include\s*[<"][^>"]*'] })

" Linters
let g:ale_linters.c = ['gcc']
let g:ale_linters.cpp = ['gcc']

" Autoformat
let g:ale_fixers.c = ['clang-format']
let g:ale_fixers.cpp = ['clang-format']

" fswitch
au BufEnter *.h let b:fswitchdst = 'cpp,cc,c'
au BufEnter *.cc let b:fswitchdst = 'h'

Make fswitch recognise .cc files
[vim] Make fswitch recognise .cc files

This change makes fswitch be able to switch from .h <=> .cc where
previously .cc will switch to .hh and .h will switch to .c even if .cc
is present.

Signed-off-by: Yichen <be3bb257ef8d73236feaba36cd3e5ee9095e6819@gmail.com>

yichenshen/holocron-configs