RaafatTurki / corn.nvim

LSP diagnostics at your corner
107 stars 8 forks source link

error in function render not enough space #13

Open simonlearnscoding opened 3 months ago

simonlearnscoding commented 3 months ago

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

![Uploading grafik.png…]()

simonlearnscoding commented 3 months ago

grafik

RaafatTurki commented 3 months ago

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

vunhatchuong commented 3 months ago

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]):