Code Monkey home page Code Monkey logo

ascii.nvim's Introduction

Ascii.nvim

A curated collection of ascii art and utilities for your Neovim dashboard.

Preview of ascii.nvim in neovim


Installaton

  • Install using your favorite plugin manager (here i'm using packer)
  • Nui.nvim is used for preview functionality
...
use({ "MaximilianLloyd/ascii.nvim", requires = {
	"MunifTanjim/nui.nvim"
} })
...

Then set the art you want in your dashboard configuration. Here i'm using alpha.nvim.

Set a specific art piece.

...
local options = {
	header = {
		...
	    val = ascii.art.animals.dogs.lucky,
		...
	},
}
...

Or get one at random

...
local options = {
	header = {
		...
	    val = ascii.get_random_global(),
		...
	},
}
...

Or get one at random from a subcategory.

...
local options = {
	header = {
		...
	    val = ascii.get_random("animals", "dogs"),
		...
	},
}
...

Usage

See what subcategories are available.

Browse using poup

Browse using popup

lua require("ascii").preview()

j to move down in the list and k to move up. The path is the value that can be copied to your dashboard configuration.


Non-popup way to browse plugins.

lua require("ascii").print_category("animals")

Preview the art available in the subcategory.

lua require("ascii").print_subcategory("animals", "dogs")

Get a random art piece from a subcategory.

lua require("ascii").get_random("animals", "dogs")

Telescope integration

telescope.load_extension("ascii")

Then you can do

Telescope ascii

To fuzzy search. The name is the path you can use in your config.

Categories

Create your own and contribute

I created a small rust cli tool that converts ascii art to a lua table, so you can easily contribute.


Todo

  • Implement telescope extension
  • Random independant of category

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.