Skip to content

Latest commit

 

History

History
79 lines (64 loc) · 1.58 KB

README.md

File metadata and controls

79 lines (64 loc) · 1.58 KB

lualine-time

Time and date display extension for lualine.nvim

Why??

I always forgot to attend course in collegue while happy programming at dormitory. So I made this plugin to always remind me the current time.

Screenshot

lualine-time

Use

Add the component ctime or cdate to one of your lualine sections.

require'lualine'.setup {
	...
	sections = {
		lualine_x = {
			'cdate',
			'ctime',
			...
		}
	}
}

Installation

Plug 'archibate/lualine-time'
use 'archibate/lualine-time'

Example configuration

use {
    'nvim-lualine/lualine.nvim',
    'archibate/lualine-time',
    requires = { 'kyazdani42/nvim-web-devicons', opt = true },
    config = function()
    require'lualine'.setup {
        options = {
            theme = 'auto',
        },
        sections = {
            lualine_a = {'mode'},
            lualine_b = {'branch', 'diff', 'diagnostics'},
            lualine_c = {'filename'},
            lualine_x = {'ctime'},
            lualine_y = {'progress'},
            lualine_z = {'location'},
        },
        inactive_sections = {
            lualine_a = {},
            lualine_b = {},
            lualine_c = {'filename'},
            lualine_x = {'location'},
            lualine_y = {},
            lualine_z = {},
        },
        tabline = {},
        winbar = {},
        inactive_winbar = {},
        extensions = {}
    }
    end,
}