Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 01:36
    vrkansagara commented #1249
  • 00:50
    vrkansagara commented #1207
  • Nov 28 22:27
    fannheyward closed #3490
  • Nov 28 14:48
    oblitum commented #3490
  • Nov 28 14:11
    T0maas opened #3490
  • Nov 28 10:22
    tibimunteanu opened #3489
  • Nov 28 02:21
    oblitum commented #1251
  • Nov 28 02:05
    oblitum commented #3487
  • Nov 28 02:05
    oblitum commented #3487
  • Nov 27 23:19
    oblitum commented #3487
  • Nov 27 23:18
    oblitum commented #3487
  • Nov 27 23:17
    oblitum commented #3487
  • Nov 27 23:17
    oblitum closed #3487
  • Nov 27 23:17
    oblitum commented #3487
  • Nov 27 22:29
    darzok0914 commented #3355
  • Nov 27 18:16
    oblitum edited #3487
  • Nov 27 18:16
    oblitum edited #3487
  • Nov 27 18:13
    codecov[bot] commented #3487
  • Nov 27 18:13
    codecov[bot] commented #3487
  • Nov 27 18:11
    codecov[bot] commented #3487
Francisco Lopes
@oblitum
only thing I know is that coc is what starts it, and it always puts home in the watch-list
the only exception I just discovered, is that after a watch-del-all, it isn't listed anymore
so... just very weird
Qiming zhao
@chemzqm
Not happens for me
Francisco Lopes
@oblitum
I think it puts it in the first place because my home dir is under git
so, technically, it's a workspace root
and it would be fine if it could respect not to scan untracked files.
Ritesh Harjani
@riteshharjani

@chemzqm
riteshharjani/coc.nvim@ca9998c

^^^^ Could you please check if this is as per the coding guidelines of coc.nvim
Have coded the function to show the function declaration on hover within any function/class/ etc...

1 reply
image.png
let me know if there is anything wrong, I can correct it and send a pull request.
Thanks for all the help.
Qiming zhao
@chemzqm
@riteshharjani avoid use documentSymbol request, the buffer could be not loaded.
Ritesh Harjani
@riteshharjani
I looked at implementation of getCurrentFunctionSymbol.
awarewen
@awarewen

Hello,^^
i have a Problem of mycoc.nvimplugin:
Wcr9wd.png

Demand

i need Coc.nvimcalls my haskell-ide-engineplugin.

Process

I installed haskell-ide-enginewith yay package manager in Arch linux
This is my config files

#>>  in  init.toml
[[layers]]
    name = "lsp"
    #> 类型支持列表 #> 默认调用命令 
    filetypes = [
      "c",          #> c/c++> ['clangd']
      "cpp",
      "sh",         #> ['bash-language-server', 'start']
      "javascript", #> ['javascript-typescript-stdio']
      "html",      #> ['html-languageserver', '--stdio']
      "haskell",    #> ['hie-wrapper', '--lsp'] 
    ]
    [layers.override_cmd]
      c       = ["clangd"]
[[layers]]
  name = "lang#haskell"

That's all configrations in my coc-settings.json file

  "languageserver": {
  "haskell": {
    "command": "hie-wrapper",
    "args": ["--lsp"],
    "rootPatterns": [
      "*.cabal",
      "stack.yaml",
      "cabal.project",
      "package.yaml"
    ],
    "filetypes": [
      "hs",
      "lhs",
      "haskell"
    ],
    "initializationOptions": {
      "haskell": {
      }
    }
  }
}

}

I Don't know how to fix that error, can somebaby help me, please .T^T

Qiming zhao
@chemzqm
Check log of your language server, we don't know why it crashed.
awarewen
@awarewen

Check log of your language server, we don't know why it crashed.

OK Thanks for reply, I will check it. :(

Qiming zhao
@chemzqm
awarewen
@awarewen

Output may contains something useful https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

OK , I Get it; thanks for guiding!

Francisco Lopes
@oblitum
@awarewen you should try haskell-language-server instead of hie.
it's also easily available through ghcup.
spamwax
@spamwax:matrix.org
[m]
is it possible to feed the output of CocAction("documentSymbols") to fzf
Francisco Lopes
@oblitum
there's coc-fzf
it should provide it
spamwax
@spamwax:matrix.org
[m]
I'll try that
jbrashears
@jbrashears
image.png
cryptofish7
@cryptofish7
hey
cryptofish7
@cryptofish7
What is coc#_complete() and how do I configure coc so this function doesn't cause lag?
Qiming zhao
@chemzqm
:h coc-config-suggest
cryptofish7
@cryptofish7
@chemzqm how do i use this ?
Qiming zhao
@chemzqm
Read wiki
1 reply
toty88
@toty88:matrix.org
[m]
Hello guys! Im new to nvim and coc as well but I cant seem to find out how to change default coc-emmet abbreviations
Qiming zhao
@chemzqm

Hello guys! Im new to nvim and coc as well but I cant seem to find out how to change default coc-emmet abbreviations

Why you need change emmet abbreviations?

toty88
@toty88:matrix.org
[m]
html:5 comes with a meta tag that's not useful to me right now! Im in the process of learning html-css-js.. and haven't learned about meta yet
to be honest it doesn't trouble me at all I just wanna learn how to change/create emmet abbreviations haha
Qiming zhao
@chemzqm
It's built in snippet, you have to fork the code if you don't like it.
toty88
@toty88:matrix.org
[m]
Ohh I didn't know! Is there any way of Not changing but adding new abbreviations? I read that putting a snippet.json file at ~/.config/coc/extensions/ works but mine doesn't
Qiming zhao
@chemzqm

I read that putting a snippet.json file at ~/.config/coc/extensions/ works but mine doesn't

Where you read it? coc.nvim itself doesn't load snippet files.

1 reply
toty88
@toty88:matrix.org
[m]
Thanks @chemzqm you've been very helpful!
Qiming zhao
@chemzqm
Maybe https://github.com/mattn/emmet-vim could load emmet snippets from files.
toty88
@toty88:matrix.org
[m]
thanks! wont be any conflicts with coc-emmet? having the two altogether?
mas88
@mas88:matrix.org
[m]
Hi, I'm trying to debug an issue and I'm not sure I can make an reproducible example and I was wondering if anyone could help me with some directions debugging.
When I run :CocCommand pyright.organizeimports I get "[coc.nvim] Error on applyEdits: x is not iterable"
I'm unsure if coc is the correct debug point or pyright.
mas88
@mas88:matrix.org
[m]
Well, I'm a bit flummoxed. I set up Coc for debug and sourced the thing and started logging throughout the function to see where it was failing, checking the value of edits and all, and the function actually works, it just gives me that message (while developing it doesn't say x it says edits).
Here's the traceback from CocOpenLog
 14 2021-07-26T17:26:50.109 ERROR (pid:106577) [workspace] - TypeError: edits is not iterable
 13     at Workspace.applyEdit (/home/mas/.vim/plugged/coc.nvim/build/index.js:36413:33)
 12     at processTicksAndRejections (node:internal/process/task_queues:96:5)        
 11     at async /home/mas/.config/coc/extensions/node_modules/coc-pyright/lib/index.js:23449:7
 10     at async Commands.runCommand (/home/mas/.vim/plugged/coc.nvim/build/index.js:66931:21)
  9     at async Plugin.cocAction (/home/mas/.vim/plugged/coc.nvim/build/index.js:70313:19)
  8     at async NeovimClient2.<anonymous> (/home/mas/.vim/plugged/coc.nvim/build/index.js:70423:15)
I'm not very familiar with any of this stuff. I'd love to figure it out and give you a PR but, like I said, the function actually works, it just throws the message and I can't actually figure out where. I tried logging on every other line to see where there might be a break in my output and it all comes through. Everything in the function executes (except a logging statement in the catch block. I'm sure there's something fishy async going on and I'm terrible with that stuff.