Crates.io | neovim-twitch-chat |
lib.rs | neovim-twitch-chat |
version | 1.0.3 |
source | src |
created_at | 2021-02-15 16:48:24.961248 |
updated_at | 2021-02-18 12:17:22.694293 |
description | A neovim plugin to send messages to twitch |
homepage | |
repository | https://github.com/hardliner66/twitch-send |
max_upload_size | |
id | 355624 |
size | 51,752 |
This plugin let's you send text to twitch chat from inside neovim!
You will need to set the following environment variables
cargo install --force neovim-twitch-chat
" If you have cargo installed, you can use the install script
" to automatically update the binary
Plug 'hardliner66/neovim-twitch-chat', { 'do': ':!./install.sh' }
" If you manually installed the backend, you can just do
Plug 'hardliner66/neovim-twitch-chat'
vnoremap <silent> <C-s>v :<C-U>TwitchChatSendSelected<CR>
nnoremap <silent> <C-s>n :TwitchChatSendLine<CR>
nnoremap <silent> <C-s>k :TwitchChatScratch<CR>
" scratch window height in percent
let g:twitch_scratch_height = 0.2
" if the scratch window shows on top or at the bottom
let g:twitch_scratch_top = 1
" if set to 1, automatically closes the scratch window on ESC
" and sends the whole buffer to twitch
"
" you can use <C-c> to enter normal mode even if twitch_scratch_autosend is set to 1
let g:twitch_scratch_autosend = 0
" list of usernames which get excluded for autocomplete
let g:twitch_chat_name_filter = ["username"]
Install Rustup: https://www.rustup.rs/
Use the stable rust compiler.
rustup install stable
rustup default stable
$ git clone https://github.com/hardliner66/neovim-twitch-chat
$ cd neovim-twitch-chat
$ cargo build --release
nvim -u ./init.vim --noplugin -c ":TwitchChatConnect"
The TwitchChatConnect
command spawns the Rust plugin in a separate process and
establishes a channel.