Closed krisfans closed 2 years ago
I did a test with your configurations on macOS, can't reproduce. And as you can see, the suggestions list is different from yours, there's no built-in
suffix. What's your coc-texlab
version? and the texlab
version? I'm using 3.2.0
my environment: wsl+ubuntu20.04+nvim 0.5.0+windows terminal+texlab 3.1
. I just update texlab to v3.2, but this still exists.
I did a test with your configurations on macOS, can't reproduce
Did you use a third party colorscheme ?
In your tests, the completion items all with built-in
suffix?
third party colorscheme
Minimal vimrc, without color scheme setting.
In your tests, the completion items all with
built-in
suffix?
Seems to be yes
Minimal vimrc, without color scheme setting.
I set colorscheme gruvbox8
in vimrc
:CocList extensions
and :CocList services
I can't get built-in
in the completion items.
And make a test without any colorscheme please.
if &compatible
set nocompatible " Be iMproved
endif
set runtimepath^=~/.cache/nvim/dein/repos/github.com/neoclide/coc.nvim_release
filetype plugin indent on
syntax enable
set background=dark
set termguicolors
" colorscheme gruvbox8
autocmd BufRead,BufNewFile *.tex set filetype=tex
set completeopt-=preview
let g:coc_global_extensions =[
\ 'coc-clangd',
\ 'coc-texlab',
\ ]
{
"suggest.timeout": 500,
"suggest.noselect": false,
"suggest.detailField": "abbr"
}
nvim -u minimal.vim test.tex
I found set "suggest.detailField": "abbr"
in coc-settings.json
is the key to reproducing the problem。 If the value of suggest.detailField
defaults , built-in
will disappear
"suggest.detailField": "abbr"
Got it.
Looks like it's a problem on WSL.
"suggest.detailField": "abbr"
means set detail of LSP complete item to abbr
of vim's complete item.
It's expected.
Result from CocInfo
Describe the bug
See the gif
Reproduce the bug
We will close your issue when you don't provide minimal vimrc and we can't reproduce it
mini.vim
with:autocmd BufRead,BufNewFile *.tex set filetype=tex " autocmd FileType tex set syn=tex set completeopt-=preview