Create a coc extension quickly 🚀
npx create-coc-extension [extension-name]
# or
npm exec create-coc-extension [extension-name]
cd [extension-name]
npm install
npm run build
npm create coc-extension [extension-name]
# or
npm init coc-extension [extension-name]
cd [extension-name]
npm install
npm run build
yarn create coc-extension [extension-name]
cd [extension-name]
yarn install
yarn run build
bun create coc-extension [extension-name]
cd [extension-name]
bun install
bun run build
cd ~/src
npx create-coc-extension coc-test
? project title: coc-test
? project description: coc-test extension
? author full name: Heyward Fann
? author email address: fannheyward@gmail.com
coc-test is created.
cd /Users/fannheyward/src/coc-test && npm i
then "set runtimepath^=/Users/fannheyward/src/coc-test" in vimrc/init.vim, and you will see "[coc.nvim] coc-test works!" notification.
:CocCommand coc-test.Command
for commandcoc-test.enabled
for configurationTestCompletionItem
for completion
MIT