Skip to content

Commit

Permalink
feat: support neocmakelsp
Browse files Browse the repository at this point in the history
Fix #131
  • Loading branch information
Freed-Wu committed Apr 2, 2024
1 parent a3212ef commit 9860baf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/coc-cmake/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/coc-cmake/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const serverPath = getConfig<string>('lsp.serverPath')

const serverOptions: ServerOptions = {
command: serverPath,
args: /\bneocmakelsp\b/.test(serverPath) ? ['stdio'] : undefined,
}

const clientOptions: LanguageClientOptions = {
Expand Down

0 comments on commit 9860baf

Please sign in to comment.