Skip to main content

CMake LSP Implementation

Project description

cmake-language-server

PyPI AUR version GitHub Actions (Tests) codecov GitHub

CMake LSP Implementation.

Alpha Stage, work in progress.

Features

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

Commands

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

Installation

$ pip install cmake-language-server

Tested Clients

Neovim

coc.nvim
  "languageserver": {
    "cmake": {
      "command": "cmake-language-server",
      "filetypes": ["cmake"],
      "rootPatterns": [
        "build/"
      ],
      "initializationOptions": {
        "buildDirectory": "build"
      }
    }
  }
vim-lsp
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',
  \ }
  \})
endif

Project details


Download files

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

Source Distribution

cmake-language-server-0.1.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

cmake_language_server-0.1.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file cmake-language-server-0.1.2.tar.gz.

File metadata

  • Download URL: cmake-language-server-0.1.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.8 CPython/3.7.7 Linux/5.3.0-1020-azure

File hashes

Hashes for cmake-language-server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a0b8cc43555a06b7964359c80dd35c8cfcbcdea1b2213b2e64378d5ea721c100
MD5 944f9a9543ceb256982a6d72d8575c90
BLAKE2b-256 33e8bef214936127fc5becd4ae4b94764a76800f1007cdd178bd96858b4c85af

See more details on using hashes here.

File details

Details for the file cmake_language_server-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cmake_language_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87b28b84b922b5d421a2d50d0957bada227f3dd3c64359ef9a3137d2b0f851f7
MD5 da181b00a2cd6c9763f90847105c41e4
BLAKE2b-256 f2b905fd4a8675da042098b91eaa5d399eec6bf4a3131787074552f7331f58e3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page