Skip to main content

CMake LSP Implementation

Project description


PyPI AUR version GitHub Actions (Tests) codecov GitHub

CMake LSP Implementation.

Alpha Stage, work in progress.


  • [x] Builtin command completion
  • [x] Documentation for commands and variables on hover
  • [x] Formatting


  • cmake-language-server: LSP server
  • cmake-format: CLI frontend for formatting


$ pip install cmake-language-server

Tested Clients


  "languageserver": {
    "cmake": {
      "command": "cmake-language-server",
      "filetypes": ["cmake"],
      "rootPatterns": [
      "initializationOptions": {
        "buildDirectory": "build"
if executable('cmake-language-server')
  au User lsp_setup call lsp#register_server({
  \ 'name': 'cmake',
  \ 'cmd': {server_info->['cmake-language-server']},
  \ 'root_uri': {server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'build/'))},
  \ 'whitelist': ['cmake'],
  \ 'initialization_options': {
  \   'buildDirectory': 'build',
  \ }

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cmake-language-server, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size cmake_language_server-0.1.2-py3-none-any.whl (11.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cmake-language-server-0.1.2.tar.gz (10.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page