Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/archibate/lualine-time
Time and date display extension for lualine.nvim
https://github.com/archibate/lualine-time
lualine lualine-components neovim neovim-lua-plugin neovim-plugin
Last synced: 9 days ago
JSON representation
Time and date display extension for lualine.nvim
- Host: GitHub
- URL: https://github.com/archibate/lualine-time
- Owner: archibate
- Created: 2023-04-11T00:09:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-04T06:19:15.000Z (9 months ago)
- Last Synced: 2024-03-04T07:30:47.350Z (9 months ago)
- Topics: lualine, lualine-components, neovim, neovim-lua-plugin, neovim-plugin
- Language: Lua
- Homepage:
- Size: 19.5 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lualine-time
Time and date display extension for [lualine.nvim](https://github.com/nvim-lualine/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](screenshot.png)
## Use
Add the component ctime or cdate to one of your lualine sections.
```lua
require'lualine'.setup {
...
sections = {
lualine_x = {
'cdate',
'ctime',
...
}
}
}
```## Installation
### [vim-plug](https://github.com/junegunn/vim-plug)
```lua
Plug 'archibate/lualine-time'
```### [packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua
use 'archibate/lualine-time'
```## Example configuration
```lua
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,
}
```