This plugin let's you send text to twitch chat from inside neovim!
You will need to set the following environment variables - NVIMTWITCHTOKEN can be generated at twitchapps.com/tmi. - NVIMTWITCHNAME is your twitch name - NVIMTWITCHCHANNEL the twitch channel to join
bash
cargo install --force neovim-twitch-chat
vim
Plug 'hardliner66/neovim-twitch-chat'
vim
vnoremap <silent> <C-s>v :<C-U>TwitchChatSendSelected<CR>
nnoremap <silent> <C-s>n :TwitchChatSendLine<CR>
nnoremap <silent> <C-s>k :TwitchChatScratch<CR>
```vim " scratch window height in percent let g:twitchscratchheight = 0.2
" if the scratch window shows on top or at the bottom let g:twitchscratchtop = 1
" if set to 1, automatically closes the scratch window on ESC
" and sends the whole buffer to twitch
"
" you can use
" list of usernames which get excluded for autocomplete let g:twitchchatname_filter = ["username"] ```
Install Rustup: https://www.rustup.rs/
Use the stable rust compiler.
```sh rustup install stable rustup default stable
```
sh
$ git clone https://github.com/hardliner66/neovim-twitch-chat
sh
$ cd neovim-twitch-chat
$ cargo build --release
sh
nvim -u ./init.vim --noplugin -c ":TwitchChatConnect"
The TwitchChatConnect
command spawns the Rust plugin in a separate process and
establishes a channel.