Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Codeium code completion integration for CodeMirror 6

License

NotificationsYou must be signed in to change notification settings

val-town/codemirror-codeium

Repository files navigation

npm

flowchart TDKeystroke --> SetTimeoutKeystroke -->|ignoreUpdate| CancelledSetTimeout -->|edits| CancelledSetTimeout --> GetCompletionsGetCompletions -->|edits| CancelledX[ ] -->|focusChanged| CancelledGetCompletions --> DispatchEditsDispatchEdits -->|mousedown| CancelledDispatchEdits --> SameKeyCommandSameKeyCommand -->|tab| AcceptSuggestionCommand
Loading

Very experimental and unofficial

Copilot-like ghost text code frommodeling-appbyJess Frazelle and based onCursor.

Documentation

See thedemo source code fora reference to how it's used.

import{copilotPlugin}from"@valtown/codemirror-codeium";// This is a CodeMirror extensioncopilotPlugin();

CSS

This adds a.ghostText class to CodeMirror decorations for the AI-writtentext. You can add your own style for this class. The demo uses this style:

.cm-ghostText,.cm-ghostText* {opacity:0.6;filter:grayscale(20%);cursor: pointer;}.cm-ghostText:hover {background:#eee;}

Architecture

This makes requests against theCodeium hosted product,using their Protocol Buffer-based interface. That's what thebuf andconnectrpcmodules are doing - generating and using bindings to their service.

The extension is a composite of facets, decorations, state fields, and morethat are encapsulated.

About

Codeium code completion integration for CodeMirror 6

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp