will-lynas / grapple-line.nvim

🪝 A lualine component for grapple.nvim
MIT License
12 stars 2 forks source link
neovim neovim-plugin nvim plugin

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 },
    },
})