Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 24 23:29
    Phytolizer edited #3445
  • Oct 24 23:28
    Phytolizer edited #3445
  • Oct 24 23:28
    Phytolizer edited #3445
  • Oct 24 23:27
    Phytolizer edited #3445
  • Oct 24 23:27
    Phytolizer opened #3445
  • Oct 24 21:43
    oblitum commented #3442
  • Oct 24 21:43
    oblitum commented #3442
  • Oct 24 18:09
    oblitum edited #3375
  • Oct 24 15:13
    Abh15h3k edited #3444
  • Oct 24 15:12
    Abh15h3k edited #3444
  • Oct 24 15:11
    Abh15h3k edited #3444
  • Oct 24 15:10
    Abh15h3k opened #3444
  • Oct 24 11:40
    codecov[bot] commented #3443
  • Oct 24 11:36
    kevinhwang91 edited #3443
  • Oct 24 11:35
    kevinhwang91 synchronize #3443
  • Oct 24 10:19
    kevinhwang91 synchronize #3443
  • Oct 24 10:18
    kevinhwang91 opened #3443
  • Oct 24 03:48
    ihasdapie opened #3442
  • Oct 24 03:35
    danmohd commented #3167
  • Oct 23 16:33
    oblitum edited #3375
botand
@botand:matrix.org
[m]
Thanks for the info👌
Max Hoffman
@hoffmanmc
Anybody use pyenv with coc? Stopped getting error messages at all a while ago, and I'm thinking it has something to do with it searching there for python packages...
image.png
LuisCC
@luisiacc
I think you have to install pynvim on the environment
Heyward Fann
@fannheyward
@hoffmanmc coc doesn't use Python or pynvim, you can ignore this error.
For pyenv, what extension or LS do you use? coc-pyright or coc-jedi?
Max Hoffman
@hoffmanmc
@fannheyward I am using coc-pyright
Heyward Fann
@fannheyward
@hoffmanmc coc-pyright will detect pyenv by .python-version or PYENV_VERSION
Francisco Lopes
@oblitum
@fannheyward: I'm checking whether this (https://github.com/fannheyward/coc-pyright/issues/67#issuecomment-670286861) is still needed for pyenv venvs. Seems then it's not after fannheyward/coc-pyright@77e02e0
in that commit it's looked up by .python-version file though, instead of $PYENV_VIRTUAL_ENV presence, though I suspect it ends up the same
Max Hoffman
@hoffmanmc
I see. I guess the real issue I am having then is just something is preventing my error messages from displaying, even after explicitly adding "diagnostic.checkCurrentLine": true to my coc-settings.json, and I just happen to be using python
Heyward Fann
@fannheyward
@oblitum yes, for most cases, you don't need to set pythonPath or venvPath any more. coc-pyright will try to detect python venvs and use it.
@hoffmanmc what's the output of :CocCommand workspace.showOutput Pyright?
Max Hoffman
@hoffmanmc
@fannheyward , well I fixed it just be reinstalling coc-nvim. I think something got messed up when I tried adjusting the text colors to make them more legible using my init.vim file. I don't think it preserved the logs from the previous times I ran it, so we may never know what caused it... thanks for your help though!
wtf
@iamjdwtf_twitter
does coc clangd has Inheritance Hierarchy?
antikythera
@leibniz:matrix.org
[m]
In https://github.com/neoclide/coc-yaml why formatter is disabled by default?
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