Skip to content

Febri-i/snake.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Snake.nvim

Screenshot

Play snake right on your favourite text editor, neovim!

Install

This plugin use fscreen.nvim to create window and drawing stuff on the screen

Lazy:

{
    "Febri-i/snake.nvim",
    dependencies = {
        "Febri-i/fscreen.nvim"
    },
    opts = {}
}

Usage

Run :SnakeStart to start the game and :q to quit

Customization

Dont like what you see on the screen? you can change the highlighting by setting up your own color via custom_highlight

require("snake").setup(
    {
        custom_higlitght = {
            text = "guibg=#FFFFFF guifg=#000000",
            background = "guibg=#000000",
            food1 = "guibg=#0000FF",
            food2 = "guibg=#FFFF00",
            food3 = "guibg=#ff00FF",
            body = "guibg=#77FF00",
            head = "guibg=#e3bb22"
        }
    }
)

Controls

use h j k l to turn around and p to pause!

About

Snake game on neovim, practice your hjkl or whatnot!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages