b0o / incline.nvim

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

invalid value for field "window.padding_char" #22

Closed fgheng closed 2 years ago

fgheng commented 2 years ago

Hello, while I use startuptime, error occured.

image

b0o commented 2 years ago

Can you please share your incline configuration?

fgheng commented 2 years ago

hello, here is my incline coniguration

local status_ok, incline = pcall(require, 'incline')
if not status_ok then
    vim.notify('incline not found')
    return
end

incline.setup({
    debounce_threshold = {
        falling = 50,
        rising = 10
    },
    hide = {
        cursorline = false,
        focused_win = false,
        only_win = false
    },
    highlight = {
        groups = {
            InclineNormal = {
                default = true,
                group = 'NormalFloat'
            },
            InclineNormalNC = {
                default = true,
                group = 'NormalFloat'
            }
        }
    },
    ignore = {
        buftypes = 'special',
        filetypes = {},
        floating_wins = true,
        unlisted_buffers = true,
        wintypes = 'special'
    },
    render = 'basic',
    window = {
        margin = {
            horizontal = 1,
            vertical = 1
        },
        options = {
            signcolumn = 'no',
            wrap = false
        },
        padding = 1,
        padding_char ='',
        placement = {
            horizontal = 'right',
            vertical = 'top'
        },
        width = 'fit',
        winhighlight = {
            active = {
                EndOfBuffer = 'None',
                Normal = 'InclineNormal',
                Search = 'None'
            },
            inactive = {
                EndOfBuffer = 'None',
                Normal = 'InclineNormalNC',
                Search = 'None'
            }
        },
        zindex = 50
    }
})

This problem exists not only in startuptime, but also in newly created windows, such as nvim tree

syphar commented 2 years ago

@fgheng you defined an empty string ('') as padding char, while you probably wanted a space? (' ')?

fgheng commented 2 years ago

Oh, thank you very much, the problem is solved

fgheng commented 2 years ago

Oh, thank you very much, the problem is solved