A lualine component for grapple.nvim
Here grapple-line.nvim
is used on the right of the tabline.
{
"will-lynas/grapple-line.nvim",
version = "1.x",
dependencies = {
"cbochs/grapple.nvim",
},
}
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 = {},
},
}
require("lualine").setup({
tabline = {
lualine_z = { require("grapple-line").lualine },
},
})