Skip to content

maxmx03/roseline

Repository files navigation

Roseline

screenshot

Minimal statusline

Requirements

Setup

lazy

return {
 {
    'maxmx03/roseline',
    opts = {},
    dependencies = {
      'rose-pine/neovim',
    }
 }
}

Configuration

To customize the layout, you need to create a function that will return a string. This string will be the section of your status line.

require('roseline').setup {
    theme = 'rose-pine',
    layout = {
        a = section_a,
        b = section_b,
        c = section_c,
        d = section_d,
        e = section_e,
    },
    icons = {
        vim = '',
        git = {
            head = '',
            added = '',
            changed = '',
            removed = '',
        },
        diagnostic = {
            Error = '',
            Warning = '',
            Information = '',
            Question = '',
            Hint = '󰌶',
            Debug = '',
            Ok = '󰧱',
        },
        os = {
            Linux = '',
            microsoft = '',
            Darwin = '',
        },
        default = { left = '', right = '' },
        block = { left = '', right = '' },
        round = { left = '', right = '' },
    },
}

Docs

h roseline

Contribution

Any contributions are welcome; just send a pull request.

Running Tests

Locally

apt install luarocks
luarocks install luacheck
luarocks install vusted
vusted tests

Inside a container

docker compose up