catppuccin / nvim

🍨 Soothing pastel theme for (Neo)vim
MIT License
5.68k stars 256 forks source link

blink-cmp integration with frappe has low contrast on completion window #797

Closed allengueco closed 3 weeks ago

allengueco commented 1 month ago

Description

Currently, the blink-cmp integration's lsp completion window and documentation has low contrast when using frappe. Kind of unreadable without borders.

Frappe: image

Comparing to Mocha: image

Is this intended?

Neovim version

NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.1727870382

Terminal and multiplexer

wezterm

Catppuccin version / branch / rev

main

Steps to reproduce

  1. enable blink_cmp integration
  2. use lsp completion/documentation window

Expected behavior

I'd expect some contrast with the completion windows

Actual behavior

No contrast

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  {
    "catppuccin/nvim",
    config = function()
      require('catppuccin').setup({
        flavour = "frappe",
        integrations = { blink_cmp = true }
      })
     end,
  },
  {
    "saghen/blink.cmp",
    lazy = false,
    version = "v0.*",
    config = function()
      require('blink.cmp').setup({
        keymap = "super-tab",
      })
    end
  }
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("catppuccin")
vollowx commented 4 weeks ago

Seems that you didn't enable the blink-cmp integration at all

allengueco commented 4 weeks ago

I can't seem to get a working repro.lua to reproduce the issue, but I've updated it above to match the relevant bits in my config.

allengueco commented 4 weeks ago

I think I made it work - just open any file that can use auto completion from any lsp

vollowx commented 3 weeks ago

Just found that the original PR is designed for a bordered UI, so the background is meant to be base.

I'd like to add an extra option style = plain/bordered, what do you think of this?

allengueco commented 3 weeks ago

Yeah that would work!