GithubHelp home page GithubHelp logo

fortune.nvim's Introduction

Description

This plugin designed to inject a dose of inspiration, wisdom, or humor into your editing workflow. It delivers random quotes, proverbs, or jokes directly to your Neovim dashboard. Additionally, it offers helpful tips and tricks to improve your productivity and efficiency within the editor.

Useful for dashboard plugins like mini.starter and dashboard.nvim

Installation

Using packer in lua

use {"rubiin/fortune.nvim"}

Using lazy.nvim in lua

{
   -- amongst your other plugins
{ "rubiin/fortune.nvim", config = true }
}
``

Using [vim-plug](https://github.com/junegunn/vim-plug) in vimscript

```vim
Plug "rubiin/fortune.nvim"

Configuration (optional)

Following options can be given when calling setup({config}). Below is the default configuration

{
-- max width the fortune section should take place
max_width = 60,

-- Controls the amount of text displayed
-- short - One liners (default)
-- long - Multiple lines
-- mixed - Combination of above
display_format = "short",

-- The type of fortune to display
-- quotes - Random techy quotes
-- tips - Neovim productivity tips
-- mixed - Combination of above
content_type = "quotes"
}

Usage

The plugin returns a lua table

-- dashboard.nvim reference
footer = function()
  local info = {}
  local fortune = require("fortune").get_fortune()
  info[1] = "  Neovim loaded " .. vim.fn.strftime("%H:%M") .. " on " .. vim.fn.strftime("%d/%m/%Y") .. " '"
  local footer = vim.list_extend(info, fortune)
  return footer
  end

Screenshots

Tips

When content_type="tips", it shows some useful tips and tricks like neovim shortcuts which can be very useful.

1

Quote

When content_type="quotes", it shows programming quotes that are both funny and educational.

2

Self promotion

Checkout my other plugins highlighturl vimwordlist

fortune.nvim's People

Contributors

rubiin avatar elpiloto avatar

Stargazers

 avatar Mike Funk avatar ThatXliner avatar Dhruva Reddy avatar Dai López avatar Slipstream avatar Ryan Hung avatar Matteo Bongiovanni avatar Ludo Pinelli avatar  avatar Yuta Katayama avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.