Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 14:05
    amandeepgautam edited #3497
  • 14:04
    amandeepgautam commented #3497
  • 12:38

    fannheyward on master

    fix(util.vim): keep jumplist fo… (compare)

  • 12:38
    fannheyward closed #3494
  • 08:35

    fannheyward on master

    CocActionAsync called instead o… (compare)

  • 08:35
    fannheyward closed #3499
  • 08:28
    dev7ba closed #3496
  • 08:28
    dev7ba commented #3496
  • 08:27
    dev7ba opened #3499
  • 06:17
    jqhr commented #3492
  • 03:03
    fannheyward reopened #3488
  • 03:03
    fannheyward closed #3488
  • 03:03
    fannheyward commented #3488
  • 02:51
    fannheyward commented #3498
  • 02:51
    fannheyward closed #3498
  • 02:17
    asters1 edited #3498
  • 02:15
    asters1 reopened #3498
  • 02:15
    asters1 edited #3498
  • 02:02
    asters1 closed #3498
  • 01:57
    asters1 reopened #3498
hibert
@wanghuibin0
does anyone know how to jump to the next function in current buffer, please?
James Pickard
@euoia
Hi all. I copied most of the script from https://github.com/neoclide/coc.nvim#example-vim-configuration and with JavaSctipt files using prettier, my status line now has ❌ 1 Prettier at the start - I assume because lua print(vim.api.nvim_eval("coc#status()")) evaluated to Prettier
is it intentional to show the linter that reported the error in the status line?
also, what part of my configuration controls where the errors / infos show? I sometimes see error info, but sometimes don't
image.png
James Pickard
@euoia
The diagnostic info is shown if I use the [g key map, but not if I hover on the line, for example
2 replies
Ian Liu Rodrigues
@ianliu
Is it possible to disable the warning/info sign for "Unused variable" in coc.nvim?
LuisCC
@luisiacc
is there a way to update diagnostic as I type instead of when I save the file?
Francisco Lopes
@oblitum
@luisiacc it's like that by default.
LuisCC
@luisiacc
I don't think so, however I found a config that is default to false that seems to do that: diagnostic.refreshInInsertMode
Francisco Lopes
@oblitum
luisiacc, it refreshes diagnostics on InsertLeave, etc, which provides less noisy experience than updating it on every character insert.
I mean, that's the default behavior.
refreshInInsertMode is to update it on every char change, people generally don't want that.
Jesse Atkinson
@jsatk
Hello. I'm beginning work on a coc plugin and I'm not quite sure how to get it to read from my fork that's on disk?
I read the :help and did :CocUninstall coc-metals and then added this to my .vimrc Plug '~/Developer/coc-metals', {'do': 'yarn install --frozen-lockfile'}, did a :PlugInstall and :CocInstall coc-metals. I've tried a few variations on this. But it still installs coc-metals from the marketplace. Not my local copy. What am I doing wrong?
Or what is the "best" way to do what I'm attempting?
Jesse Atkinson
@jsatk
Actually i see my ~/Developer/coc-metals in my set runtimepath.
Never mind. I got it. Turns out that do command doesn't work with local installations? Odd. I had to cd to the directory and manually run it.
Jesse Atkinson
@jsatk
Why doesn't the do bit work for local extensions?
when managed with Plug?
James Pickard
@euoia
How can I figure out which language servers are loaded for a given buffer? How can I find out which language server this error comes from?
image.png
James Pickard
@euoia
:CocUninstall seems to take any argument and never errors
it caught me out
Heyward Fann
@fannheyward

How can I figure out which language servers are loaded for a given buffer? How can I find out which language server this error comes from?

:CocList services

@euoia what do you mean take any argument and never errors?
James Pickard
@euoia
:CocUninstall askjhdakjshdkjashd
shows a green message that looks like success
admittedly, it shows "removed: " (doesn't show the plugin name) but I didn't know what to expect when running that command
Heyward Fann
@fannheyward
:CocList extensions will list all extensions you've installed, filter the one you want to uninstall, tab to choose uninstall action to uninstall
James Pickard
@euoia
yeah, I got there in the end, it just caught me out because I thought I had uninstalled an extension but had not
Heyward Fann
@fannheyward

admittedly, it shows "removed: " (doesn't show the plugin name) but I didn't know what to expect when running that command

you can ignore this message, CocUninstall extension-that-not-exist will not uninstall anything, this can be improved

James Pickard
@euoia
hmm I restarted neovim and CocList services is not showing anything
image.png
Heyward Fann
@fannheyward
but you still get the const a error message?
maybe it's not came from coc side
James Pickard
@euoia
hmm, I don't think it can be from anything else
if I run CocDisable the error goes away
Heyward Fann
@fannheyward
@euoia what's the CocList extensions?
James Pickard
@euoia
image.png
but I have restarted Coc now and CocList services is showing something else
Heyward Fann
@fannheyward
As you can see, vetur/eslint/prettier are enabled for your vue file
James Pickard
@euoia
CocList extensions seems to show the same output regardless of which buffer I'm editing
Heyward Fann
@fannheyward
The sign before extension name, * is activated, + is installed but not activated for current buffer
James Pickard
@euoia
weird, it doesn't really seem to change even if I change to a lua file, or a text file
even though I'm getting lua completions in the lua file
/ah, I guess you can enable and disable them for the buffer?
James Pickard
@euoia
Does anyone else use coc-prettier? For some reason I often see "Prettier" in m¥ statusline, I think it's because coc#status() is "Prettier"
hrai
@hrai
image.png
Hi. I profiled vim and found that CoC takes 9s to respond.