Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to uninstall extensions? #1311

Closed
kkoomen opened this issue Oct 28, 2019 · 22 comments
Closed

How to uninstall extensions? #1311

kkoomen opened this issue Oct 28, 2019 · 22 comments

Comments

@kkoomen
Copy link

kkoomen commented Oct 28, 2019

I have installed coc-highlight by providing the coc-highlight in my vimrc using the g:coc_global_extensions variable.

I have decided that I want to uninstall this plugin, but I can't uninstall this no matter what. The highlighting is still showing up. I did :CocUninstall coc-highlight, removed all its mappings in my vimrc, I removed ~/.config/coc and ~/.vim/plugged/coc.nvim and re-installed, but nothing works.

Any idea?

@chemzqm
Copy link
Member

chemzqm commented Oct 28, 2019

Check :CocList extensions, the highlights could comes from langauge server

@chemzqm chemzqm closed this as completed Oct 28, 2019
@kkoomen
Copy link
Author

kkoomen commented Oct 28, 2019

Can you not close an issue immediately? I already tried checking :CocList extensions and they list everything but not coc-highlight.

@chemzqm
Copy link
Member

chemzqm commented Oct 28, 2019

It means coc-highlight was removed.

1 similar comment
@chemzqm
Copy link
Member

chemzqm commented Oct 28, 2019

It means coc-highlight was removed.

@kkoomen
Copy link
Author

kkoomen commented Oct 28, 2019

Yes.... and the highlighting still appears in my Vim, so how do I fix this?

@chemzqm
Copy link
Member

chemzqm commented Oct 28, 2019

Check your configuration file

@kkoomen
Copy link
Author

kkoomen commented Oct 28, 2019

For what? Can you be more specific?

@chemzqm
Copy link
Member

chemzqm commented Oct 29, 2019

You have autocmd like autocmd CursorHold * silent! call CocActionAsync('highlight')

If you can't figure out such kind of issue yourself, consider use other tools, we don't work for you.

@chemzqm chemzqm pinned this issue Oct 29, 2019
@chemzqm chemzqm unpinned this issue Oct 29, 2019
@kkoomen
Copy link
Author

kkoomen commented Oct 29, 2019

You have autocmd like autocmd CursorHold * silent! call CocActionAsync('highlight')

Are you even reading my issue? I already mentioned that I removed everything including corresponding mappings.

[...] we don't work for you.

I never said you did, but you're being rude at people who ask for help because something does not work as expected with your plugin.


Apparently the uninstall process does not work as expected. Maybe you should be more receptive to feedback instead of being harsh.

@iamcco
Copy link
Contributor

iamcco commented Oct 29, 2019

It can't be coc highlight the words since you have uninstall coc-highlight and remove the config relative to highlight of coc. If you think it is coc's issue please reproduce with minimum vimrc.

@fannheyward
Copy link
Member

  1. You did :CocUninstall coc-highlight, this will remove highlight extension.
  2. :CocList extensions did not contains coc-highlight, this means the extension has already removed.

But you still have highlight, this is not expected. Can you provide :CocInfo and vimrc that we can reproduce this issue?

@kkoomen
Copy link
Author

kkoomen commented Oct 29, 2019

Can you provide :CocInfo [...]

## versions

vim version: VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 23 2019 15:11:17)
node version: v12.6.0
coc.nvim version: 0.0.74-36e476819f
term: iTerm.app
platform: darwin

## Messages
Messages maintainer: Bram Moolenaar <Bram@vim.org>
"_variables.scss" 1005L, 26585C

[...] and vimrc

let g:coc_global_extensions = [
      \ 'coc-tsserver',
      \ 'coc-html',
      \ 'coc-css',
      \ 'coc-python',
      \ 'coc-phpls',
      \ 'coc-yaml',
      \ 'coc-json',
      \ 'coc-vimlsp',
      \ 'coc-emmet',
      \ 'coc-tag',
      \ ]

function! s:show_documentation()
  if (index(['vim','help'], &filetype) >= 0)
    execute 'H ' . expand('<cword>')
  else
    call CocActionAsync('doHover')
  endif
endfunction

" Use K to show documentation in preview window
nnoremap <silent> K :call <SID>show_documentation()<CR>

nmap <silent> gd <Plug>(coc-definition)

hi! CocErrorSign guifg=#d97084
hi! CocWarningSign guifg=#e9cb87
hi! CocInfoSign guifg=#d0d2d2
hi! CocHintSign guifg=#6face4

@oblitum
Copy link
Member

oblitum commented Oct 29, 2019

One of the extensions may be doing extra highlighting. Does coc.nvim from scratch, without any extensions, and with all extensions removed (simply nuke .config/coc) "highlights"?

I still ignore what highlighting you're talking about, CSS colors?

@oblitum
Copy link
Member

oblitum commented Oct 29, 2019

Check this for example: neoclide/coc-css#3.

@oblitum
Copy link
Member

oblitum commented Oct 29, 2019

And this:

coc.nvim/data/schema.json

Lines 784 to 788 in c9cc96e

"coc.preferences.colorSupport": {
"type": "boolean",
"description": "Enable color highlight if language server support it.",
"default": true
},

@oblitum
Copy link
Member

oblitum commented Oct 29, 2019

Also notice the first answer by @chemzqm was:

Check :CocList extensions, the highlights could comes from langauge server

Emphasis mine.

@kkoomen
Copy link
Author

kkoomen commented Oct 29, 2019

I still ignore what highlighting you're talking about, CSS colors?

Yes, I confirm that its pure css, other languages are not being highlighted.

@kkoomen
Copy link
Author

kkoomen commented Oct 29, 2019

"coc.preferences.colorSupport": false fixed it, thanks.

@chemzqm
Copy link
Member

chemzqm commented Oct 29, 2019

If you don't have CocAction('highlight') with autocmd, the highlight won't work at all.
So it's problem of your vim's configuration, provide your minimal vimrc when you want to report bug.

@rishadbaniya
Copy link

rishadbaniya commented Apr 12, 2021

To uninstall an extension, type ":CocList extensions" and then press TAB key and there it will prompt you to choose "u" and uninstall the extension you selected

@amsheehan
Copy link

You have autocmd like autocmd CursorHold * silent! call CocActionAsync('highlight')

If you can't figure out such kind of issue yourself, consider use other tools, we don't work for you.

lmao, who tf are ya building for then??

@imkrishnasarathi
Copy link

try :PlugUpdate in vim editor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants