Skip to content

How to configure ecode to use the ccls language server? #309

Answered by SpartanJ
Curculigo asked this question in Q&A
Discussion options

You must be logged in to vote

You just need to configure the LSP server, go to:
Settings -> Tools -> Plugin Manager -> LSP Client -> Preferences, add a new server for c and cpp:
Set the server section:

  "servers": [
      {
        "language": "c",
        "name": "ccls",
        "url": "https://github.com/MaskRay/ccls",
        "command": "ccls",
        "file_patterns": ["%.c$", "%.h$", "%.C$", "%.H$", "%.objc$"]
      },
      {
        "language": "cpp",
        "use": "ccls",
        "file_patterns": ["%.inl$", "%.cpp$", "%.hpp$", "%.cc$", "%.cxx$", "%.c++$", "%.hh$", "%.hxx$", "%.h++$", "%.objcpp$"]
      }
  ]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Curculigo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants