https://github.com/lambdalisue/vim-wifi
Show wifi information on statusline/tabline of Neovim/Vim
https://github.com/lambdalisue/vim-wifi
Last synced: 2 months 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-28T15:02:45.000Z (almost 4 years ago)
- Last Synced: 2025-02-05T06:13:58.623Z (5 months ago)
- Language: Vim script
- Homepage:
- Size: 22.5 KB
- Stars: 20
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
wifi.vim
==============================================================================



[](LICENSE)
[](doc/wifi.txt)
*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.