npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@hexuhua/coc-copilot

v0.0.22

Published

copilot.vim completion source integration of coc.nvim

Readme

@hexuhua/coc-copilot

https://github.com/hexh250786313/coc-copilot/assets/26080416/5f8fa5cb-3c42-4d2d-9d72-4cc6c4a5c99c

@hexuhua/coc-copilot is a coc.nvim extension that integrates with GitHub's copilot.vim to provide AI-powered code completions for your projects.

Note: There is another plugin called coc-copilot: https://github.com/yuki-yano/coc-copilot, but that repository is no longer maintained by the author. This is a different plugin. Make sure to install it using @hexuhua/coc-copilot and not coc-copilot.

Features

  • Fetches code completions from copilot.vim.
  • Integrates with coc.nvim's completion system.
  • Customizable source priority, label, and limit.

Installation

Make sure you have coc.nvim and copilot.vim installed and configured.

Then, install @hexuhua/coc-copilot using:

:CocInstall @hexuhua/coc-copilot

Usage

Now coc-copilot doesn't support auto-updating completion panel. You need to update completions manually by coc#refresh():

inoremap <silent><expr><c-l> coc#refresh()

That is because asynchronous completion makes coc completion panel update slowly. See: Asynchronous Completion for isIncomplete Items in coc.nvim #5028

Configuration

Here are the available configuration options for coc-copilot:

  • copilot.enable: (Boolean, default: true) Enable or disable the coc-copilot extension.
  • copilot.timeout: (Integer, default: 5000) coc-copilot uses polling to get results from copilot.vim. If there is no result after <timeout> ms, then the polling ends. The value cannot be less than 500 because the interval of polling is 500ms, and the default value is 5000ms, which is the same as the default timeout of coc completion.
  • copilot.priority: (Integer, default: 1000) The priority of Copilot completion items compared to other completion sources.
  • copilot.limit: (Integer, default: 10) The maximum number of completion items fetched from Copilot.
  • copilot.enablePreselect: (Boolean, default: true) Enable or disable preselecting Copilot completion items.
  • copilot.kindLabel: (String, default: " ") The label used for Copilot completions in the completion menu.
  • copilot.shortcut: (String, default: "Cop") The shortcut used for Copilot completions in the completion menu.
  • copilot.showRemainingText: (Boolean, default: true) Whether to show the remaining text after the completion item in the completion menu. For some languages such as markdown, there is often a lot of text in one line, which can be helpful.
  • ~~copilot.autoUpdateCompletion: (Boolean, default: true) Whether to update the completion panel automatically when the copilot result is updated.~~ Deprecated: Now coc-copilot no longer updates the completion panel automatically because asynchronous completion makes coc completion panel update slowly. See: Asynchronous Completion for isIncomplete Items in coc.nvim #5028

License

MIT License.

Q & A

  • Q: What copilot.showRemainingText does?

  • A: It shows the remaining text after the completion item in the completion menu. For some languages such as markdown, there is often a lot of text in one line, which can be helpful.

    2024-06-11_19-49