Skip to content

will-lynas/grapple-line.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 

Repository files navigation

grapple-line.nvim

A lualine component for grapple.nvim

image Here grapple-line.nvim is used on the right of the tabline.

lazy.nvim setup

Minimal

{
	"will-lynas/grapple-line.nvim",
	version = "1.x",
	dependencies = {
		"cbochs/grapple.nvim",
	},
}

Full

The default values are shown in the opts table.

{
	"will-lynas/grapple-line.nvim",
	dependencies = {
		"cbochs/grapple.nvim",
	},
	version = "1.x",
	opts = {
		number_of_files = 4,
		colors = {
			active = "lualine_a_normal",
			inactive = "lualine_a_inactive",
		},
		-- Accepted values:
		-- "unique_filename" shows the filename and parent directories if needed
		-- "filename" shows the filename only
		mode = "unique_filename",
		-- If a tag name is set, use that instead of the filename
		show_names = false,
		-- Accepted values:
		-- "none" - overflowing files are ignored
		-- "ellipsis" - if there are overflowing files an ellipsis will be shown
		overflow = "none",
		-- Files for which the parent directory should always be shown
		always_show_parent = {},
	},
}

Usage

require("lualine").setup({
	tabline = {
		lualine_z = { require("grapple-line").lualine },
	},
})