Skip to content

LanceZhu/coc-codegeex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coc-codegeex

codegeex in vim using coc.nvim

code_generation

Install

first install coc.nvim

and in vim install plugin: coc-codegeex :CocInstall coc-codegeex

Usage

setup

use :CocConfig open configuration file, add apiKey and apiSecret. You can apply this in tianqi

{
  "codegeex": {
    "apiKey": "your_api_key",
    "apiSecret": "your_api_secret",
  }
}

stealth mode

when you stop type, you will see the completion list. use Enter to confirm selection, the selected code will be inserted.

translation mode

set keymap in .vimrc

vmap <silent> <C-l> <Plug>(coc-codegeex-translate-keymap)

in vim visual mode, select some code and use ctrl + l to trigger translation.

License

MIT


This extension is built with create-coc-extension