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

@yaegassy/coc-vitest

yaegassy

Vitest for coc.nvim

Installation CommandVim prompt
:CocInstall @yaegassy/coc-vitest
GitHub owner
yaegassy
Version
v0.4.1
Requirements
coc ^0.0.80
License
MIT
Repository
GitHub
npm latest published 2026-10-13Registry summary

Published Package Summary

coc-vitest

Vitest for coc.nvim

coc-vitest-demo

Install

CocInstall:

:CocInstall @yaegassy/coc-vitest

scoped packages

vim-plug:

Plug 'yaegassy/coc-vitest', {'do': 'pnpm install'}

CodeLens (Neovim only)

Feature:

CodeLens appears above the test name in the *.test.ts and *.spec.ts files. Currently, import.meta.vitest is not supported.

coc-settings.json:

By default, codeLens.enable is set to false, which disables it.

Change the setting to true to enable it.

{
  "codeLens.enable": true
}

Example key mapping (CodeLens related):

nmap <silent> gl <Plug>(coc-codelens-action)

Misc:

"CodeLens" does not work with "Vim8" due to coc.nvim specifications.

vitest.singleTest commands are available, so please use them.

Similar coc.nvim extension

Thanks

License

MIT


This extension is built with create-coc-extension

Read the complete README
  • Vitest for coc.nvim
Activation Events
  • onLanguage:typescript
  • onLanguage:javascript
  • onLanguage:typescriptreact
  • onLanguage:javascriptreact
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.