Skip to content

okuramasafumi/rspec-current.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 

Repository files navigation

rspec-current.vim

Caution

It's very unstable. It's not documented yet and the implementation is immature. Feel free to try it but everything is subject to change in the future.

Limitations

It required Ruby 3.2 since it uses new features added to RubyVM::AbstractSyntaxTree in Ruby 3.2.

Usage

Install

First, install neovim gem if you use Neovim. Skip this installation step if you use Vim.

gem install neovim

Then install it with your favorite package manager.

Functions

After installation, two functions are available.

  • RSpecCurrentSubject: Returns current subject as a String
  • RSpecCurrentContext Returns current context as a String

Then you can echo it with something like:

:echo RSpecCurrentSubject()

You can set these functions in your statusline plugin to track current subject/context.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published