Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/n04ln/_ayunis.nvim
:headphones: All YoU Need Is Spotify for NeoVim
https://github.com/n04ln/_ayunis.nvim
macosx nvim spotify
Last synced: about 2 months ago
JSON representation
:headphones: All YoU Need Is Spotify for NeoVim
- Host: GitHub
- URL: https://github.com/n04ln/_ayunis.nvim
- Owner: n04ln
- License: mit
- Created: 2018-04-15T08:26:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T07:28:55.000Z (over 4 years ago)
- Last Synced: 2024-11-15T10:56:57.484Z (about 2 months ago)
- Topics: macosx, nvim, spotify
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AYUNiS.nvim
All YoU Need Is Spotify (only macOS)## Require
- go >= 1.11.0
- Spotify.app## Installation
1. execute `$ go get -u github.com/n04ln/AYUNiS.nvim` because install a binary2. Plz write below code in `$XDG_CONFIG_HOME/nvim/init.vim`
``` vim
" if you use dein.vim
call dein#add("n04ln/AYUNiS.nvim")
" if you use vim-plug
Plug 'n04ln/AYUNiS.nvim'
```
and set runtimepath
``` vim
" e.g. if you use vim-plug, perhaps runtime path is this.
let g:ayunis_rtp = $HOME . '/.vim/plugged/AYUNiS.nvim'
```3. please execute some command to install plugin (e.g. `:PlugInstall`)
4. Let's Enjoy `AYUNiS.nvim` Life!
## Usage
### Get the name of the song that is playing now
``` vim
:echo AYUNiSGetNowPlaying()
```
if you want to add to `statusline`, plz set as below
``` vim
" default
set statusline+=%!AYUNiSGetNowPlaying()" use airline (show in the statusline
let g:airline_section_x = airline#section#create(['%{AYUNiSGetNowPlaying()}'])" use lightline (show in the tabline
let g:lightline = {
\ 'component_function': {
\ 'ayunis': 'AYUNiSGetNowPlaying'
\ },
\ }
let g:lightline.tabline = {
\ 'left': [['ayunis', 'buffers']],
\ 'right': [['close']]
\ }
```### Next Track
``` vim
:call AYUNiSNext()
```### Prev Track
``` vim
:call AYUNiSPrev()
```### Toggle Play & Pause
``` vim
:call AYUNiSToggle()
```### Volume Control
``` vim
:call AYUNiSVolumeUp()
:call AYUNiSVolumeDown()
```### Toggle REPEAT
``` vim
:call AYUNiSToggleRepeat()
```### Toggle SHUFFLE
``` vim
:call AYUNiSToggleShuffle()
```## Keybinds
### Example
``` vim
" Next
nnoremap sl :call AYUNiSNext()
" Prev
nnoremap sh :call AYUNiSPrev()
" Toggle(playpause)
nnoremap st :call AYUNiSToggle()
" Volume up
nnoremap s+ :call AYUNiSVolumeUp()
" Volume down
nnoremap s- :call AYUNiSVolumeDown()
" Toggle Repeat
nnoremap sr :call AYUNiSToggleRepeat()
" Toggle Shuffle
nnoremap sf :call AYUNiSToggleShuffle()
```