scottmckendry / cyberdream.nvim

🤖💤 High-contrast, Futuristic & Vibrant Coloursheme for Neovim
MIT License
630 stars 26 forks source link

CMP border & icon #114

Closed gldtn closed 1 month ago

gldtn commented 1 month ago

Question or Suggestion

I'm not sure why, but I can't figure out why my CMP config is not showing the border and icon on the left like in the screenshot:

https://github-production-user-asset-6210df.s3.amazonaws.com/39483124/346232697-f9dc6523-f458-48df-8837-09d5c131a5c7.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240807%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240807T205937Z&X-Amz-Expires=300&X-Amz-Signature=3c18a259fc00165e62954ec797a619d8b84d67dc36c2d87756b3823960429242&X-Amz-SignedHeaders=host&actor_id=981383&key_id=0&repo_id=734174431

This is how it shows: cmp

I'm sure it's either something I did on my config or an option I need to enable on Cyberdream.

Thanks!

gldtn commented 1 month ago

Never mind, I took a look at your dot files and was able to get it like in the screebshot:

cmp-new

Any ideas on how to get rid of these warnings?: cmp-errors

Awesome theme BTW, thanks for sharing!

scottmckendry commented 1 month ago

Thanks @gldtn, glad you like it!

I've been meaning to raise a PR in the cmp repo to fix this because the warnings bother me too. In the meantime, you can silence them by adding the following lines to your config:

        cmp.setup({
            window = {
                completion = {
                    ---@diagnostic disable: assign-type-mismatch
                    border = {
                        { "󱐋", "WarningMsg" },
                        { "─", "Comment" },
                        { "╮", "Comment" },
                        { "│", "Comment" },
                        { "╯", "Comment" },
                        { "─", "Comment" },
                        { "╰", "Comment" },
                        { "│", "Comment" },
                    },
                    scrollbar = false,
                },
                documentation = {
                    border = {
                        { "", "DiagnosticHint" },
                        { "─", "Comment" },
                        { "╮", "Comment" },
                        { "│", "Comment" },
                        { "╯", "Comment" },
                        { "─", "Comment" },
                        { "╰", "Comment" },
                        { "│", "Comment" },
                    },
                    ---@diagnostic enable: assign-type-mismatch
                    scrollbar = false,
                },
            },
gldtn commented 1 month ago

Did not know I could disable diagnostic that way. Thank you for replying so quickly.