Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! myspacevim#before() abort
- call SpaceVim#logger#info('myspacevim#before called')
- nnoremap ; :
- endfunction
- function! myspacevim#after() abort
- " let g:ctrlp_user_command="rg %s --hidden --files -g \"\" -g '!*/tmp/*' -g '!*.so' -g '!*.swp' -g '!*.zip' -g '!*.class' -g '!tags' -g '!*.jpg' -g '!*.ttf' -g '!*.TTF' -g '!*.png' -g '!*/target/*' -g '!.git' -g '!.svn' -g '!.hg' -g '!.DS_Store' -g '!*.svg' -g '!node_modules'"
- let g:ctrlp_user_command="rg %s --hidden --files -g \"\" -g '!.git' -g '!bak'"
- xunmap v
- xunmap V
- map <CR> <Plug>(expand_region_expand)
- map <BS> <Plug>(expand_region_shrink)
- " let g:LanguageClient_serverCommands = {
- " \ 'cpp': ['cquery', '--log-file=/tmp/cq.log'],
- " \ 'c': ['cquery', '--log-file=/tmp/cq.log'],
- " \ }
- " let g:LanguageClient_loadSettings = 1
- " let g:LanguageClient_settingsPath = '/home/jie/.config/nvim/cquery.settings.json'
- let g:LanguageClient_serverCommands = {
- \ 'cpp': ['ccls', '--log-file=/tmp/cc.log'],
- \ 'c': ['ccls', '--log-file=/tmp/cc.log'],
- \ }
- let g:LanguageClient_loadSettings = 1
- let g:LanguageClient_settingsPath = '/home/jie/.config/nvim/ccls.settings.json'
- set completefunc=LanguageClient#complete
- set formatexpr=LanguageClient_textDocument_rangeFormatting()
- set tabstop=4
- set shiftwidth=4
- au BufWritePre *.cpp,*.hpp,*.c,*.h,*.lua,*.py,*.go,*.rs %s/\s\+$//ge
- au BufWritePre *.cpp,*.hpp,*.c,*.h,*.lua,*.py,*.go,*.rs %retab!
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement