Skip to content

DCIAL42/line.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Line

Installation

lazy.nvim

{
    "DCIAL42/line.nvim",
    opts = {
        -- set options here to customize line
    }

    -- or
    -- config = function()
    --     require("theme").setup({...})
    -- end
},

Default opts

All generator functions are visible in lua/line.lua, they should just return a string or nil, if nil they will not be displayed, including left and right text

opts = {
    ignore = {
        "TelescopePrompt",
        "mason",
        "harpoon",
    },
    blocks = {
        {
            {
                name = "file",
                generator = function()
                    return "{%f} %m"
                end,
            }
        },
        {
            {
                name = "diagnostic",
                generator = get_diagnostic_text
            }
        },
        {
            {
                name = "loclist",
                generator = get_loclist_info,
                left = "loc=[",
                right = "]",
            },
            {
                name = "qflist",
                generator = get_qflist_info,
                left = "qf=[",
                right = "]",
            }
        },
    },
}

About

Modular neovim status line

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages