idanarye / nvim-days-without

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI Status

INTRODUCTION

Days Without is a plugin for encouraging Neovim users to refrain from playing with their configuration instead of doing actual work. It does so by displaying the number of days it has been since the last time the configuration was touched.

Days Without was developed and tested on Linux. I don't care enoguh to make sure it works on other operation systems, but if someone does I wouldn't mind merging their PR.

asciicast

FEATURES (IMPLEMENTED/PLANNED)

  • Determining the last time the configuration was changed.
  • Exposing that information for other plugins (e.g. custom splash screens) to use.
  • Displaying a billboard (using a floating window) with that information.

SETUP

Install Days Without with your plugin manager of choice, and add this to your init.lua:

require'days-without'.setup {
    path = '~/path/to/git/worktree/containing/neovim/configuration',
}

The path must be a Git repository. If setup is called from somewhere inside the Git worktree, path can be omitted, and Days Without will detect it automatically:

require'days-without'.setup {}

By default the billboard to appear at startup. To disable it on startup, set:

require'days-without'.setup {
    show_on_startup = false,
}

And run it manually with:

:lua require'days-without'.show()

ALTERNATIVES

Both of these plugins differ from Days Without:

  • They are based on the modification date of the files - unlike Days Without which checks the Git information.
  • They print their message - Days Without shows a pretty billboard.

CONTRIBUTION GUIDELINES

About

License:MIT License


Languages

Language:Lua 100.0%