/zenith.nvim

Zenith is a lightweight zen-mode plugin.

Primary LanguageLuaMIT LicenseMIT

Zenith

Zenith is a lightweight zen-mode plugin.

Requirements

To use this plugin, you need :

  • to have Neovim 0.8+ version installed ;
  • to add woosaaahh/zenith.nvim in your plugin manager configuration ;

Here are some plugin managers :

Usage

Just assign zenith.toggle() to a keymap and press this keymap.

e.g. vim.keymap.set("n", "<leader>z", require("zenith").toggle)

Configuration

Here is the default configuration :

local options = {
	nvim = {
		cmdheight = 1,
		colorcolumn = false,
		foldcolumn = "0",
		laststatus = 0,
		number = false,
		relativenumber = false,
		ruler = false,
		scrolloff = 0,
		shortmess = "acsF",
		showcmd = false,
		showmode = false,
		sidescrolloff = 0,
		signcolumn = "no",
		wrap = false,
	},

	-- on_open = function()
	-- 	print("Zenith mode one")
	-- end,
	-- on_close = function()
	-- 	print("Zenith mode off")
	-- end,
}