Skip to content

bobon4uto/swapintro.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

swapintro.nvim

Plugin for Neovim that replaces intro screen with your buffer. A half-fork of eoh-bse/minintro.nvim

Installation

--Plug
plug 'bobon4uto/swapintro.nvim'

You need to run setup, and provide your values if you dont want the defaults.

Example configuration

require('swapintro').setup( {
intro = {
[[ ____  _____ _____ _   _   _ _   _____ ]],
[[|  _ \| ____|  ___/ \ | | | | | |_   _|]],
[[| | | |  _| | |_ / _ \| | | | |   | |  ]],
[[| |_| | |___|  _/ ___ \ |_| | |___| |  ]],
[[|____/|_____|_|/_/   \_\___/|_____|_|  ]]
},
buf_name = "intro",
buf_type = "none",
widechar = false,
center = true,
center_individually = false
}
)

intro is the text you want to be displayed.
buf_name is what will be displayed instead of a filename.
buf_type is what will be displayed instead of a filetype.
widechar is needed if you use wide chars, and centering doesn't work.
center if set to true, the text will be centered as solid block.
centerx if set to true, the text will be centered by x. (default true)
centery if set to true, the text will be centered by y. (default true)
center_individually if set to true, lines will be centered separatly.
Note that center_individually will not work without center set to true.

About

Plugin for Neovim that replaces intro screen with your buffer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages