Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. function! myspacevim#before() abort
  2. call SpaceVim#logger#info('myspacevim#before called')
  3.  
  4. nnoremap ; :
  5. endfunction
  6.  
  7. function! myspacevim#after() abort
  8. " 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'"
  9. let g:ctrlp_user_command="rg %s --hidden --files -g \"\" -g '!.git' -g '!bak'"
  10.  
  11. xunmap v
  12. xunmap V
  13.  
  14. map <CR> <Plug>(expand_region_expand)
  15. map <BS> <Plug>(expand_region_shrink)
  16.  
  17. " let g:LanguageClient_serverCommands = {
  18. " \ 'cpp': ['cquery', '--log-file=/tmp/cq.log'],
  19. " \ 'c': ['cquery', '--log-file=/tmp/cq.log'],
  20. " \ }
  21. " let g:LanguageClient_loadSettings = 1
  22. " let g:LanguageClient_settingsPath = '/home/jie/.config/nvim/cquery.settings.json'
  23.  
  24. let g:LanguageClient_serverCommands = {
  25. \ 'cpp': ['ccls', '--log-file=/tmp/cc.log'],
  26. \ 'c': ['ccls', '--log-file=/tmp/cc.log'],
  27. \ }
  28. let g:LanguageClient_loadSettings = 1
  29. let g:LanguageClient_settingsPath = '/home/jie/.config/nvim/ccls.settings.json'
  30.  
  31. set completefunc=LanguageClient#complete
  32. set formatexpr=LanguageClient_textDocument_rangeFormatting()
  33.  
  34. set tabstop=4
  35. set shiftwidth=4
  36.  
  37. au BufWritePre *.cpp,*.hpp,*.c,*.h,*.lua,*.py,*.go,*.rs %s/\s\+$//ge
  38. au BufWritePre *.cpp,*.hpp,*.c,*.h,*.lua,*.py,*.go,*.rs %retab!
  39.  
  40. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement