kuafuwang / LspCpp

A Language Server Protocol implementation in C++
MIT License
78 stars 22 forks source link
language-server-protocol lsp lsp-client lsp-cpp lsp-server

LspCpp

Dependencies

LspCpp depends on boost, rapidjson, utfcpp, uri.

Build

Linux / Mac

  1. On linux, install boost

      $ sudo apt-get install libboost-dev 

    On Mac, install boost on Mac

      $ brew install boost
  2. Building with CMake

    $ mkdir _build $ cd _build $ cmake -DUri_BUILD_TESTS=OFF .. $ make -j4

Windows

  1. Open cmd or powershell and generate visual studio project with CMake.

    mkdir _build cd _build cmake -DUri_BUILD_TESTS=OFF -DUri_USE_STATIC_CRT=OFF ..

  2. "cmake -help" is useful if you are not familiar with cmake.

  3. Build it with Visual Studio.

Reference

Some code from :cquery

Projects using LspCpp:

Example:

It's here