Skip to content

zemafaz/motivation.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

motivation.nvim

This is a small neovim plugin that prints random phrases at the start of the program. You can use it for:

  • Motivational quotes 😇;
  • Vim motions hard to remember 🤔;
  • Reminders 📅;
  • Whatever you want. Be original 🙃

Getting start

This section describes how how can setup this plugin.

Installation

Using vim-plug:

Plug "zemafaz/motivation.nvim"

Using dein:

call dein#add("zemafaz/motivation.nvim")

Using packer.nvim:

use {
    "zemafaz/motivation.nvim"
}

Using lazy.nvim:

-- inside lazy's setup plugins table
"zemafaz/motivation.nvim",

Usage

To use the application, add the following to your configuration:

require("motivation").setup({
    lines = {
        "Neovim is awesome",
        "You must be the change you wish to see in the world. -Mahatma Gandhi",
    },
    -- or
    file = "~/quotes.txt",
})

Configuration

require("motivation").setup({
    lines = {},                 -- Lines that you wish to be randomized
    file = nil,                 -- File with lines you wish to be randomized
    -- Both "lines" and "file" are imported.

    oneline = true,             -- Show quote as prompt (need to type something to unfocus)
                                -- or a oneliner at the bottom
    execute_on_startup = true   -- Execute on startup ("VimEnter")
})

Commands

:InspireMe  # Show random quote

API

Function Description Example
inspire_me() Shows random quote require("motivation").inspire_me()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages