GithubHelp home page GithubHelp logo

burgr033 / alpha-nvim-bofh-excuse Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blakejc94/alpha-nvim-fortune

0.0 0.0 0.0 47 KB

BOFH excuses on your alpha dashboard

License: GNU General Public License v3.0

Lua 100.00%
alpha-nvim nvim neovim

alpha-nvim-bofh-excuse's Introduction

alpha-nvim-bofh-excuse

synopsis

fork of https://github.com/BlakeJC94/alpha-nvim-fortune. instead of inspirational quotes, these are just BOFH excuses on the nvim alpha-dashboard (Only the dashboard theme is supported for now.)

credits

Many thanks to @mhinz (original author for vim-startify), @BlakeJC94 (original other of the fork for alpha) and @chuckwagoncomputing (who provided the list of excuses)

Quick start

It simple adds a excuse() function for use in the plugin that generates a formatted BOFH excuse at the footer of the landing page when using the dashboard theme. First follow the instructions at https://github.com/goolord/alpha-nvim/. To add alpha-nvim-bofh-excuse with Packer, install the packages with the folloing lines in your init.lua:

return require('packer').startup(function()
    use 'wbthomason/packer.nvim'
    use {
        'goolord/alpha-nvim',
        requires = {'burgr033/alpha-nvim-bofh-excuse'},
        config = function() require("config.alpha") end,
    }
end)

Then in .config/nvim/lua/config/alpha.lua, use the following lines:

local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
local excuse = require("alpha.excuse")

-- Set header
dashboard.section.header.val = {
    -- "                                                     ",
    -- "                                                     ",
    "                                                     ",
    "  ███╗   ██╗███████╗ ██████╗ ██╗   ██╗██╗███╗   ███╗ ",
    "  ████╗  ██║██╔════╝██╔═══██╗██║   ██║██║████╗ ████║ ",
    "  ██╔██╗ ██║█████╗  ██║   ██║██║   ██║██║██╔████╔██║ ",
    "  ██║╚██╗██║██╔══╝  ██║   ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ",
    "  ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ",
    "  ╚═╝  ╚═══╝╚══════╝ ╚═════╝   ╚═══╝  ╚═╝╚═╝     ╚═╝ ",
    "                                                     ",
    -- "                                                     ",
    -- "                                                     ",
    -- "                                                     ",
}

-- Set menu
dashboard.section.buttons.val = {
    dashboard.button( "e", "  > New file" , ":ene <BAR> startinsert <CR>"),
    dashboard.button( "f", "  > Find file", ":cd $HOME/Workspace | Telescope find_files<CR>"),
    dashboard.button( "r", "  > Recent"   , ":Telescope oldfiles<CR>"),
    dashboard.button( "s", "  > Settings" , ":e $MYVIMRC | :cd %:p:h | split . | wincmd k | pwd<CR>"),
    dashboard.button( "q", "  > Quit NVIM", ":qa<CR>"),
}

-- Set footer
dashboard.section.footer.val = excuse()

-- Send config to alpha
alpha.setup(dashboard.opts)

alpha-nvim-bofh-excuse's People

Contributors

burgr033 avatar blakejc94 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.