Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 963 Bytes

README.md

File metadata and controls

47 lines (37 loc) · 963 Bytes

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

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'
            }

        }
    }
})