diff --git a/packages/coc-cmake/package.json b/packages/coc-cmake/package.json index 48d2259..8c1d397 100644 --- a/packages/coc-cmake/package.json +++ b/packages/coc-cmake/package.json @@ -50,8 +50,8 @@ }, "cmake.lsp.serverPath": { "type": "string", - "default": "cmake-language-server", - "description": "Path to [cmake-language-server](https://github.com/regen100/cmake-language-server)" + "default": "neocmakelsp", + "description": "Path to [cmake-language-server](https://github.com/regen100/cmake-language-server) or [neocmakelsp](https://github.com/Decodetalkers/neocmakelsp)" }, "cmake.lsp.buildDirectory": { "type": "string", diff --git a/packages/coc-cmake/src/client.ts b/packages/coc-cmake/src/client.ts index 730fdf1..6bf1c78 100644 --- a/packages/coc-cmake/src/client.ts +++ b/packages/coc-cmake/src/client.ts @@ -7,6 +7,7 @@ const serverPath = getConfig('lsp.serverPath') const serverOptions: ServerOptions = { command: serverPath, + args: /\bneocmakelsp\b/.test(serverPath) ? ['stdio'] : undefined, } const clientOptions: LanguageClientOptions = {