Home

Awesome

nvim-update-time

nvim-update-time updates Timestamp markers in your files as you save them.

Features

Dependencies

You need at least NVIM version 0.8.0 to use this plugin.

Installation

Add StonyBoy/nvim-update-time to your list of plugins

This is how to add the plugin with Lazy (https://github.com/folke/lazy.nvim):

  {
    'StonyBoy/nvim-update-time',
    config = function()
      require('nvim-update-time').setup({ last = 5, format = '%Y-%m-%d %H:%M:%S %Z'})
    end,
  },
}

Customization

The plugin accepts a table containing the following properties:

PropertyTypeDefault valueDescription
firstInteger0The first line number in the search range. Zero based.
lastInteger10The last line number in the search range. Zero based.
patternString'Time-Stamp: 'The text string used to locate the timestamp.
formatString'%Y-%b-%d %H:%M'The format string used to generate the timestamp. See :help strftime

User commands

These are the available user commands: