Skip to main content
Back to Extensions Directory
coc.nvim fallback icon

coc.nvim integration for okc: clangd with space/:: namespace rewriting

Installation CommandVim prompt
:CocInstall coc-okc
GitHub owner
Rubynovaya-Zvezda
Version
v0.1.3
npm package
coc-okc
Requirements
coc >=0.0.80
License
MIT
Repository
GitHub
npm latest published 2026-11-28Node >=16Registry summary

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.okc filetype / .okc extension, a .okc or okc.json marker in the project tree, or source text containing space name { or x::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.
Read the complete README
  • coc.nvim integration for okc: clangd with space/:: namespace rewriting
Activation Events
  • onLanguage:c
  • onCommand:okc.restart
Developer Resources

Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.

Open Developer Guide

Version 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.