corn.nvim icon indicating copy to clipboard operation
corn.nvim copied to clipboard

error in function render not enough space

Open simonlearnscoding opened this issue 1 year ago • 3 comments

sometimes I get spammed with an error saying error in function render not enough space

Uploading grafik.png…

simonlearnscoding avatar Jul 04 '24 06:07 simonlearnscoding

grafik

simonlearnscoding avatar Jul 04 '24 06:07 simonlearnscoding

Hi! I need more information to work with here A minimal reproduction would be best .. or anything better than a screenshot in German ahaha

RaafatTurki avatar Jul 04 '24 18:07 RaafatTurki

I have the same problem ?: image

corn settings:

return {
    "RaafatTurki/corn.nvim",
    event = "LspAttach",
    opts = {
        border_style = "rounded",
        on_toggle = function(is_hidden)
            vim.diagnostic.config({
                virtual_text = not vim.diagnostic.config().virtual_text,
            })
        end,
        item_preprocess_func = function(item)
            return item
        end,
    },
    config = function(_, opts)
        local corn = require("corn")
        -- ensure virtual_text diags are disabled
        vim.diagnostic.config({ virtual_text = false })
        corn.setup(opts)
    end,
}

I don't know what information you need but my nvim config is in my repo, lsp configs.

When

The same error would pop up 3, 4 times in the middle of me writing code.

For example, I'm in the middle of writing this class, it would pop up because I "forget" to have a class body or pass keyword.

class ServiceResponse(ResponseBase[T]):

vunhatchuong avatar Jul 05 '24 05:07 vunhatchuong