Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid value for field "window.padding_char" #22

Closed
fgheng opened this issue May 22, 2022 · 5 comments
Closed

invalid value for field "window.padding_char" #22

fgheng opened this issue May 22, 2022 · 5 comments

Comments

@fgheng
Copy link

fgheng commented May 22, 2022

Hello, while I use startuptime, error occured.

image

@b0o
Copy link
Owner

b0o commented May 22, 2022

Can you please share your incline configuration?

@fgheng
Copy link
Author

fgheng commented May 23, 2022

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
Copy link
Contributor

syphar commented May 23, 2022

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

@fgheng
Copy link
Author

fgheng commented May 23, 2022

Oh, thank you very much, the problem is solved

@fgheng fgheng closed this as completed May 23, 2022
@fgheng
Copy link
Author

fgheng commented May 23, 2022

Oh, thank you very much, the problem is solved

@fgheng fgheng closed this as completed May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants