From 9860baf88108e1f9938cf75d315149dd06b7eb94 Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Tue, 2 Apr 2024 23:10:07 +0800 Subject: [PATCH] feat: support neocmakelsp Fix #131 --- packages/coc-cmake/package.json | 4 ++-- packages/coc-cmake/src/client.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 = {