coc-okc
Rubynovaya-Zvezdacoc.nvim integration for okc: clangd with space/:: namespace rewriting
Published Package Summary
coc-okc
coc.nvim extension that runs okc lsp as the C language server. It gives Vim
completions, hover and diagnostics for space/:: source code: clangd runs
underneath, while okc rewrites text before clangd sees it and converts
suggested edits back to your source syntax.
Install
Publish from this directory with npm publish (maintainers), then in Vim:
:CocInstall coc-okc
To use the copy in this repository without publishing:
:CocInstall /absolute/path/to/okular-util-compiler/coc-okc
okc and clangd must be on PATH, or set the paths below.
Notes
- The extension starts only when a document looks like okc C:
c.okcfiletype /.okcextension, a.okcorokc.jsonmarker in the project tree, or source text containingspace name {orx::y. Otherwise plain C is left to clangd/ccls. - Both the Vim syntax plugin (
vim/in this repo) and coc-okc can be used together; the syntax plugin is only for highlighting and folding.
- coc.nvim integration for okc: clangd with space/:: namespace rewriting
- onLanguage:c
- onCommand:okc.restart
Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.
Open Developer GuideVersion History
This published npm package does not include a history.md or changelog.md file. Browse its npm versions or repository releases for available release information.
Contributed Commands
All contributes.commands entries from the published package manifest for coc-okc@0.1.3.
| Command (:CocCommand) | Description |
|---|---|
| okc.restart | okc: Restart language server |
Configuration Schema
All contributes.configuration entries from the published package manifest, including each raw property schema for coc-settings.json.
Raw JSON Schema
{
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Extra arguments passed to clangd by okc lsp."
}Raw JSON Schema
{
"type": "string",
"default": "",
"description": "Underlying clangd executable; sets SPACE_CLANGD."
}Raw JSON Schema
{
"type": "boolean",
"default": true,
"description": "Enable the okc language server for C buffers."
}Raw JSON Schema
{
"type": "string",
"default": "okc",
"description": "Path to the okc executable (must be on PATH by default)."
}Raw JSON Schema
{
"type": "array",
"items": {
"type": "string"
},
"default": [
".git",
"compile_commands.json"
],
"description": "Patterns used to find the project root."
}