Exafunction / codeium.nvim

A native neovim extension for Codeium
MIT License
644 stars 50 forks source link

Duplicate suggestion text in the doc window #16

Closed naquad closed 1 year ago

naquad commented 1 year ago

While trying out codeium.nvim I've noted the following:

image

The suggested multiline text in the documentation window is duplicated. It has been reproduced in other file types too:

image

Any other completion plugin has not exposed such behavior.

Is this a bug or by design?

jcdickinson commented 1 year ago

This is a bug. The problem is that my complete setup was truncating anything after a newline on my config. Are your dotfiles up anywhere so that I can refer to them for testing?

naquad commented 1 year ago

My dotfiles are 2.5k+ SLOC of Lua with a direct port of the old VIM config. So, no, I'm way too embarrassed to post that anywhere :man_facepalming:

ghost commented 1 year ago

I'm having the same issue. Even if I'm removing every plugin that I have except planery, cmp and nui I'm still getting duplicates of the documentation. My plugin manager is paq.

All i have in my cmp setup file is:

   mapping = cmp.mapping.preset.insert({    
       ['<C-d>'] = cmp.mapping.scroll_docs(-4),    
       ['<C-f>'] = cmp.mapping.scroll_docs(4),    
       ['<C-c>'] = cmp.mapping.abort(),    
       ['<C-CR>'] = cmp.mapping.confirm({ select = true }),    
       -- ['<C-space>'] = cmp.mapping.confirm {    
       --     behavior = cmp.ConfirmBehavior.Replace,    
       --     select = true,    
       -- },    
       ['<C-e>'] = cmp.mapping(function(fallback)    
           if luasnip.expand_or_jumpable() then    
               luasnip.expand_or_jump()    
           else    
               fallback()    
           end    
       end, { 'i', 's' }),    
   }),

    sources = {    
        { name = "codeium" },
    }

and I tried to comment out the whole init.lua file except the loading of the abeove mentioned plugins. Sadly, I don't have my anywhere.

jcdickinson commented 1 year ago

I have pushed a commit that removes one of the props from the completion entry, although I still haven't been able to get mine to look like yours. What is your completeopt set to?

ghost commented 1 year ago

set.completeopt = "menu,menuone,preview,noselect,noinsert"

However, I commented out my init.lua file i also commented out that all my "set-options" including completeopt.

naquad commented 1 year ago

I've updated the plugin. Great success!

image

Thank you :)