|
|
let g:airline_powerline_fonts = 1
|
|
|
let g:session_autosave = 'no'
|
|
|
let g:ycm_server_python_interpreter = '/usr/bin/python3'
|
|
|
let g:grammalecte_cli_py='/usr/share/grammalecte-fr/grammalecte-cli.py'
|
|
|
let g:deoplete#enable_at_startup = 1
|
|
|
|
|
|
let g:ctrlp_funky_syntax_highlight = 1
|
|
|
let g:ctrlp_working_path_mode = 'rwa'
|
|
|
let g:ctrlp_cache_dir = $XDG_CACHE_DIR . '/ctrlp'
|
|
|
|
|
|
let g:semanticTermColors = [28,1,2,3,4,5,6,7,25,9,10,34,12,13,14,15,125,124,19]
|
|
|
|
|
|
let g:EasyMotion_keys = 'auie,ctsrnmbépoèvdljzwàyx.kqghfç'
|
|
|
|
|
|
call camelcasemotion#CreateMotionMappings('')
|
|
|
|
|
|
" code search
|
|
|
if executable('ag')
|
|
|
" Use Ag over Grep
|
|
|
set grepprg=ag\ --nogroup\ --nocolor
|
|
|
|
|
|
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
|
|
|
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
|
|
|
let g:ctrlp_use_caching=1
|
|
|
endif
|
|
|
|
|
|
if executable('rg')
|
|
|
set grepprg=rg\ --color=never
|
|
|
|
|
|
"let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
|
|
|
let g:ctrlp_use_caching=1
|
|
|
endif
|
|
|
|
|
|
" ALE
|
|
|
let g:ale_linters = {
|
|
|
\ 'cpp': ['clang']
|
|
|
\}
|
|
|
|
|
|
let g:ale_echo_msg_error_str = 'Error'
|
|
|
let g:ale_echo_msg_warning_str = 'Warning'
|
|
|
let g:ale_echo_msg_format = '[%linter%] %severity%: %s'
|
|
|
|
|
|
let g:ale_cpp_clang_includes = [
|
|
|
\ getcwd(),
|
|
|
\ getcwd().'/third-party'
|
|
|
\ ] +
|
|
|
\ split(system("find '/usr/include/qt' -maxdepth 1 -type d"), '\n') +
|
|
|
\ split(system("[[ " . getcwd() . " == *'workspace'* ]] && find " . getcwd() . " -type d -name 'include'"), '\n')
|
|
|
|
|
|
let g:ale_cpp_clang_options = '-std=c++17 -Wall -Wno-pragma-once-outside-header'
|
|
|
if len(g:ale_cpp_clang_includes)
|
|
|
let g:ale_cpp_clang_options = g:ale_cpp_clang_options . ' -I' . join(g:ale_cpp_clang_includes, " -I")
|
|
|
endif
|
|
|
|
|
|
let g:ale_cs_mcsc_source = getcwd()
|
|
|
let g:ale_cs_mcsc_assemblies =
|
|
|
\ split(system("find '/opt/Unity/Editor/Data/' -type f -name 'Unity*.dll'"),'\n') "+
|
|
|
"\ split(system("find " . getcwd() . " -type f -name '*.dll'"))
|
|
|
|
|
|
" startify
|
|
|
let g:startify_fortune_use_unicode = 1
|
|
|
let g:startify_session_persistence = 1
|
|
|
let g:startify_lists = [
|
|
|
\ { 'type': 'sessions', 'header': [' Sessions'] },
|
|
|
\ { 'type': 'files', 'header': [' MRU'] },
|
|
|
\ { 'type': 'dir', 'header': [' MRU '. getcwd()] },
|
|
|
\ { 'type': 'bookmarks', 'header': [' Bookmarks'] },
|
|
|
\ { 'type': 'commands', 'header': [' Commands'] },
|
|
|
\ ]
|
|
|
let g:startify_session_before_save = []
|
|
|
|
|
|
" You can set up fzf window using a Vim command (Neovim or latest Vim 8 required)
|
|
|
let g:fzf_layout = { 'window': 'belowright 10split enew' }
|
|
|
|
|
|
" Customize fzf colors to match your color scheme
|
|
|
let g:fzf_colors =
|
|
|
\ { 'fg': ['fg', 'Normal'],
|
|
|
\ 'bg': ['bg', 'Normal'],
|
|
|
\ 'hl': ['fg', 'Comment'],
|
|
|
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
|
|
|
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
|
|
|
\ 'hl+': ['fg', 'Statement'],
|
|
|
\ 'info': ['fg', 'PreProc'],
|
|
|
\ 'border': ['fg', 'Ignore'],
|
|
|
\ 'prompt': ['fg', 'Conditional'],
|
|
|
\ 'pointer': ['fg', 'Exception'],
|
|
|
\ 'marker': ['fg', 'Keyword'],
|
|
|
\ 'spinner': ['fg', 'Label'],
|
|
|
\ 'header': ['fg', 'Comment'] }
|