CMake LSP Implementation
Project description
cmake-language-server
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 servercmake-format
: CLI frontend for formatting
Installation
$ pip install cmake-language-server
Tested Clients
- Neovim (neoclide/coc.nvim, prabirshrestha/vim-lsp)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0b8cc43555a06b7964359c80dd35c8cfcbcdea1b2213b2e64378d5ea721c100 |
|
MD5 | 944f9a9543ceb256982a6d72d8575c90 |
|
BLAKE2b-256 | 33e8bef214936127fc5becd4ae4b94764a76800f1007cdd178bd96858b4c85af |
File details
Details for the file cmake_language_server-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: cmake_language_server-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.8 CPython/3.7.7 Linux/5.3.0-1020-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b28b84b922b5d421a2d50d0957bada227f3dd3c64359ef9a3137d2b0f851f7 |
|
MD5 | da181b00a2cd6c9763f90847105c41e4 |
|
BLAKE2b-256 | f2b905fd4a8675da042098b91eaa5d399eec6bf4a3131787074552f7331f58e3 |