These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
828 B

  1. # C
  2. C is a common programming language.
  3. In this entry we will focus on making vim support c and use vim as an ide for c.
  4. ## Autocompletion
  5. ### Coc
  6. To enable autocompletion for coc you need to install `ccls`.
  7. After that you need to add the following lines to your coc config file.
  8. ```json
  9. {
  10. "languageserver": {
  11. "ccls": {
  12. "command": "ccls",
  13. "filetypes": [
  14. "c",
  15. "cpp",
  16. "objc",
  17. "objcpp"
  18. ],
  19. "rootPatterns": [
  20. ".ccls",
  21. "compile_commands.json",
  22. ".vim/",
  23. ".git/",
  24. ".hg/"
  25. ],
  26. "initializationOptions": {
  27. "cache": {
  28. "diretory": "/tmp/ccls"
  29. }
  30. }
  31. }
  32. }
  33. }
  34. ```