Lightline.vim: Feature request: Clock

Created on 18 Feb 2020  路  1Comment  路  Source: itchyny/lightline.vim

I bet you can just relay on a set of configuration in the vimrc to accomplish the same functionality as 'enricobacis/vim-airline-clock'. Which simply displays a clock in airline.

Since I work with my browser full screen, and vim-terminal as well.... I need a clock on vim :)

configuration

Most helpful comment

Here it is.

let g:lightline = {
      \ 'active': {
      \   'right': [['clock'], ['lineinfo'], ['percent'], ['fileformat', 'fileencoding', 'filetype']],
      \  },
      \  'component': {
      \    'clock': '%{strftime("%H:%M")}'
      \  },
      \ }

>All comments

Here it is.

let g:lightline = {
      \ 'active': {
      \   'right': [['clock'], ['lineinfo'], ['percent'], ['fileformat', 'fileencoding', 'filetype']],
      \  },
      \  'component': {
      \    'clock': '%{strftime("%H:%M")}'
      \  },
      \ }
Was this page helpful?
0 / 5 - 0 ratings