b0o / incline.nvim

🎈 Floating statuslines for Neovim, winbar alternative
MIT License
759 stars 14 forks source link

The position of the float win becomes wrong (offset by one column upward) after updating to the `a43a250` #23

Closed milanglacier closed 2 years ago

milanglacier commented 2 years ago

nvim version 0.7 release

my config:

    local incline_setup_table = {
        highlight = {
            groups = {
                InclineNormal = 'lualine_a_normal',
                InclineNormalNC = 'lualine_a_normal',
            },
        },
        hide = {
            focused_win = true,
        },
        window = {
            width = 'fill',
            placement = {
                vertical = 'bottom',
                horizontal = 'center',
            },
            margin = {
                horizontal = {
                    left = 0,
                    right = 0,
                },
            },
            padding = {
                left = 1,
                right = 1,
            },
            zindex = 10,
        },
    }

    require('incline').setup(incline_setup_table)
Screen Shot 2022-05-22 at 10 05 15

It is clearly shown that the floatwin is offset by one column upward. It should be at the bottommost column at each window

milanglacier commented 2 years ago

Haven't notice that the default padding has been changed. set margin.vertical=0 solves the issue.