aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/statuscol.lua
blob: 70a094727098b071ec14386018e389a1f95305c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
return {
    "luukvbaal/statuscol.nvim",
    opts = function()
        local builtin = require "statuscol.builtin"
        return {
            setopt = true,
            -- override the default list of segments with:
            -- number-less fold indicator, then signs, then line number & separator
            segments = {
                { text = { builtin.foldfunc }, click = "v:lua.ScFa" },
                { text = { "%s" }, click = "v:lua.ScSa" },
                {
                    text = { builtin.lnumfunc, " " },
                    condition = { true, builtin.not_empty },
                    click = "v:lua.ScLa",
                },
            },
        }
    end,
}