/coc-cmake

coc.nvim extension for cmake language

Primary LanguageTypeScript

coc-cmake

publish npm version

coc.nvim extension for cmake language.

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

License

MIT