https://github.com/daedlock/cryptoline.nvim
https://github.com/daedlock/cryptoline.nvim
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/daedlock/cryptoline.nvim
- Owner: daedlock
- Created: 2023-06-12T16:34:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-21T22:08:42.000Z (over 2 years ago)
- Last Synced: 2025-04-05T12:33:10.608Z (about 1 year ago)
- Language: Lua
- Size: 1.47 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
cryptoline.nvim
🚀 Neovim plugin to show real time crypto price right into your lualine 🚀
# Installation
## Packer
```
use 'daedlock/cryptoline.vim'
```
# Configuration
## Lualine
The plugin exposes `btc_price` and `eth_price` global functions. You can use them in your lualine configuration as the below example
```lua
local cryptoline = require "cryptoline"
require('lualine').setup({
sections = {
lualine_c = {
'filename', 'lsp_progress'
},
lualine_x = {
{
crypto_ticker.btc_price,
color = { bg = '#ffb86c', fg = '#4b361f', gui = 'bold' }
},
{
crypto_ticker.eth_price,
color = { bg = '#8be9fd', fg = '#365b63', gui = 'bold' }
},
{
'filetype'
}
}
}
})
```