sudoerwx / vim-ray-so-beautiful

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

License:MIT License


Languages

Language:Vim Script 100.0%