Skip to content

cksidharthan/mentor.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mentor.nvim

Make your Neovim experience more enjoyable with mentor.nvim! 😎 A Neovim plugin that displays random tips and tricks messages when you open Neovim.

Stars Issues Repo Size

📋 Features

  • Display random Neovim tips and tricks messages when you open Neovim or run the command :Mentor.
  • Add your own custom tips to be displayed
  • Fallback to embedded messages if the external messages file are not found or not valid.
  • Simple and user-friendly command to fetch a random neovim tip or trick.

📦 Installation

Install the plugin with your favorite package manager:

Packer

use({
	"cksidharthan/mentor.nvim",
	config = function()
		require("mentor").setup({
            -- your configuration options here
        })
	end,
})

Lazy.nvim:

{
    "cksidharthan/mentor.nvim",
    config = function()
		require("mentor").setup({
            -- your configuration options here
        })
    end,
}

⚙️ Configuration

mentor.nvim comes with default settings, but you can customize it to your preferences like below:

require("mentor").setup({
    -- Your custom tips (optional)
    tips = {
        "My custom tip 1",
        "My custom tip 2",
    },
    
    -- Configure default tips behavior
    defaults = {
        enabled = true,  -- Set to false to disable all default tips
        -- Skip specific default tips (optional)
        skip_list = {
            "Tip you want to exclude",
            "Another tip to exclude",
        }
    }
})

Configuration options

Option Description Type Default
tips A list of tips to be displayed table {}
defaults.enabled Whether to use default tips provided by the plugin boolean true
defaults.skip_list Array of default tips to exclude from display (to ignore some tips from the default list) table {}

No additional configuration is required for basic usage. Simply install the plugin and it will display a random message on startup or when the command is invoked.

🪴 Usage

  • On startup, a random message will be displayed after a brief delay.
  • You can manually trigger a random message by executing :Mentor in command mode.
  • If defaults.enabled is set to true, the plugin will include default tips along with your custom tips.
  • You can exclude specific default tips using the defaults.skip_list array.
  • If defaults.enabled is false, only your custom tips defined in the setup function will be displayed.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

📝 License

This project is licensed under the MIT License.

About

A neovim plugin to show tips and tricks on startup of the neovim as notifications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages