Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/voldikss/coc-cmake

See https://github.com/voldikss/coc-extensions
https://github.com/voldikss/coc-cmake

cmake cmake-completion coc-nvim

Last synced: 5 days ago
JSON representation

See https://github.com/voldikss/coc-extensions

Awesome Lists containing this project

README

        

# coc-cmake

![publish](https://github.com/voldikss/coc-cmake/workflows/publish/badge.svg)
[![npm version](https://badge.fury.io/js/coc-cmake.svg)](https://badge.fury.io/js/coc-cmake)

coc.nvim extension for cmake language.

![](https://user-images.githubusercontent.com/20282795/75767012-06869580-5d7d-11ea-9e89-8b8f173eed96.png)
![](https://user-images.githubusercontent.com/20282795/75767017-07b7c280-5d7d-11ea-900b-11eac5213b82.png)

## Features

- Code completion
- Code formatting
- Hover documentation
- Online document help

## Install

```
:CocInstall coc-cmake
```

## Commands

- `:CocCommand cmake.onlineHelp`

## Configuration

Properties

cmake.cmakePath: Path to CMake generator executable.
Type:

string
Default:
"cmake"

cmake.formatter: Path to [cmake-format](https://github.com/cheshirekow/cmake_format).
Type:

string
Default:
"cmake-format"

cmake.formatter_args: Additional arguments to be passed down to the formatter.
Type:

string[]
Default:
[]

cmake.lsp.enable: Enable language server(https://github.com/regen100/cmake-language-server), Notice that the functionality(completion, formatting, etc.) of lsp and extension builtin can not coexist.
Type:

boolean
Default:
false

cmake.lsp.serverPath: Path to [cmake-language-server](https://github.com/regen100/cmake-language-server).
Type:

string
Default:
"cmake-language-server"

cmake.lsp.buildDirectory: See https://github.com/regen100/cmake-language-server#configuration.
Type:

string
Default:
"build"

## References

- [vs.language.cmake](https://github.com/twxs/vs.language.cmake)
- [cmake-format](https://github.com/cheshirekow/cmake_format)
- [cmake-language-server](https://github.com/regen100/cmake-language-server)

## License

MIT