Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lambdalisue/vim-wifi
Show wifi information on statusline/tabline of Neovim/Vim
https://github.com/lambdalisue/vim-wifi
Last synced: 12 days ago
JSON representation
Show wifi information on statusline/tabline of Neovim/Vim
- Host: GitHub
- URL: https://github.com/lambdalisue/vim-wifi
- Owner: lambdalisue
- License: mit
- Created: 2016-10-22T09:57:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-28T15:02:45.000Z (over 3 years ago)
- Last Synced: 2024-10-04T13:29:21.250Z (about 1 month ago)
- Language: Vim script
- Homepage:
- Size: 22.5 KB
- Stars: 19
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
wifi.vim
==============================================================================
![Version 0.1.0](https://img.shields.io/badge/version-0.1.0-yellow.svg?style=flat-square)
![Support Neovim 0.1.6 or above](https://img.shields.io/badge/support-Neovim%200.1.6%20or%20above-green.svg?style=flat-square)
![Support Vim 8.0 or above](https://img.shields.io/badge/support-Vim%208.0.0%20or%20above-yellowgreen.svg?style=flat-square)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)
[![Doc](https://img.shields.io/badge/doc-%3Ah%20wifi-orange.svg?style=flat-square)](doc/wifi.txt)![wifi.vim in tabline](https://media.githubusercontent.com/media/lambdalisue/screenshots/master/wifi.vim/tabline_with_lightline.png)
*wifi.vim* is a statusline/tabline component for Neovim/Vim.
It uses a job feature of Neovim/Vim to retrieve wifi informations so that the plugin won't block the main thread.**NOTE: Only for Mac OS X. PR is welcom.**
The implementation was translated to Vim script from a Bash script found on https://github.com/b4b4r07/dotfiles/blob/master/bin/wifi.
Install
-------------------------------------------------------------------------------
Use [junegunn/vim-plug] or [Shougo/dein.vim] like:```vim
" Plug.vim
Plug 'lambdalisue/wifi.vim'" dein.vim
call dein#add('lambdalisue/wifi.vim')
```Or copy contents of the repository into your runtimepath manually.
[junegunn/vim-plug]: https://github.com/junegunn/vim-plug
[Shougo/dein.vim]: https://github.com/Shougo/dein.vimUsage
-------------------------------------------------------------------------------Use a `wifi#component()` like:
```vim
set statusline=...%{wifi#component()}...
set tabline=...%{wifi#component()}...
```Or with [itchyny/lightline.vim](https://github.com/itchyny/lightline.vim)
```vim
let g:lightline = {
\ ...
\ 'component_function': {
\ ...
\ 'wifi': 'wifi#component',
\ ...
\ },
\ ...
\}
```Additionally, assign 1 to corresponding variables to immediately reflect the
changes to `statusline` or `tabline`.```vim
let g:wifi#update_tabline = 1 " If wifi#component() is used in tabline.
let g:wifi#update_statusline = 1 " If wifi#component() is used in statusline.
```See more detail on [wifi.txt](./doc/wifi.txt)
See also
-------------------------------------------------------------------------------- [lambdalisue/battery.vim](https://github.com/lambdalisue/battery.vim) - A statusline/tabline component of Neovim/Vim.