Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

voldikss/coc-cmake

Repository files navigation

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