Skip to content

waltr-fr/redalert.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

RedAlert.nvim

A simple plugin for neovim that makes some checks and display a warning message on startup.

Setup

Dependencies

  • plenary.nvim

Configuration

  • cutoff_days = <N>: displays a message on startup if the current repository is "dirty" (files uncommitted) and the latest commit is older than N days

With lazy.nvim

{ 
  'waltr-fr/redalert.nvim'
  dependencies = { 'nvim-lua/plenary.nvim' },
  config = function()
      require("redalert").setup({
      cutoff_days = 5, 
    })
  end,
}

With packer.nvim

use {
    'waltr-fr/redalert.nvim',
    requires = { 'nvim-lua/plenary.nvim' },
    config = function()
        require("redalert").setup({
            cutoff_days = 5,
        })
    end,
}

Basic

local redalert = require('redalert')

redalert.setup({
    cutoff_days = 5,
})

TODO

  • more alerts
  • more visible message, popup maybe

About

A simple neovim plugin that displays project-related alerts on startup

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages