Skip to content

Open selected text in https://ray.so/ (unshamefuly based on vim-carbon-now-sh)

License

Notifications You must be signed in to change notification settings

sudoerwx/vim-ray-so-beautiful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-ray-so-beautiful

(n)vim implementation plugin for opening selected content in https://ray.so.

Installation

Vundle

Add the following line to your .vimrc

Plugin 'sudoerwx/vim-ray-so-beautiful'

Then run the following in Vim:

:source %
:PluginInstall

Usage

Select some text in visual mode and run this command:

:Ray

You can also map it to something and use it after selection:

vnoremap <F5> :Ray<CR>

Alternate Endpoint

idk why you would need that:

let g:ray_base_url = 'http://localhost:3000'

Browser

Plugin will try it's best to use your default browser. If it fails, or you want to customize it, provide browser executable through this option to your vimrc. Example for google-chrome:

let g:ray_browser = 'google-chrome'

Options

You can set the query string that will be passed to https://ray.so. Example for setting font and line number:

let g:ray_options =
\ {
\ 'theme' : 'midnight',
\ 'background' : 'true',
\ 'darkMode' : 'true',
\ 'padding' : '64',
\ 'language' : 'auto'
\  }

About

Open selected text in https://ray.so/ (unshamefuly based on vim-carbon-now-sh)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published