Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 03:50
    codecov[bot] commented #3597
  • 03:45
    kevinhwang91 synchronize #3597
  • 03:38
    yaegassy opened #3598
  • 03:08
    kevinhwang91 opened #3597
  • 01:19

    chemzqm on master

    refactor(workspace): split to s… (compare)

  • Jan 23 21:40

    chemzqm on master

    chore(tests): more watchman tes… refactor(workspace): use docume… (compare)

  • Jan 23 14:38

    chemzqm on master

    refactor(tests): use helper.lis… (compare)

  • Jan 23 12:43

    chemzqm on master

    chore(test): avoid read ECONNRE… (compare)

  • Jan 23 09:02
    jackhub commented #3355
  • Jan 23 05:41
    oblitum commented #3375
  • Jan 23 05:39
    oblitum commented #3375
  • Jan 23 05:39
    oblitum commented #3375
  • Jan 22 21:47

    chemzqm on master

    chore(test): close socket feat(semanticTokens): support r… (compare)

  • Jan 22 19:04
    drank40 commented #3594
  • Jan 22 19:02
    chemzqm commented #3594
  • Jan 22 18:53

    chemzqm on master

    refactor(workspace): rework Fil… (compare)

  • Jan 22 18:52
    drank40 opened #3594
  • Jan 22 14:35

    chemzqm on release

    commit 0b5130ea3818583a48a8842d… (compare)

  • Jan 22 14:33

    chemzqm on master

    perf(semanticTokens): improve u… (compare)

  • Jan 22 13:06

    chemzqm on master

    fix(highlight): avoid gravity o… (compare)

Ritesh Harjani
@riteshharjani
:)
Ritesh Harjani
@riteshharjani
wow!! overwhelmed by the amount of code in the src/
any documentation from where can I get started?
Ritesh Harjani
@riteshharjani
ok maybe for now I will only focus on what I really need.
Qiming zhao
@chemzqm
Make this function https://github.com/neoclide/coc.nvim/blob/tree/src/plugin.ts#L266 returns symbol instead of name should work for you.
Francisco Lopes
@oblitum
hey @chemzqm, you're inviting people a lot to make custom patches. No offence, and that's alright, but it's a bit funny 😄
I'm thankful you provide the right spot to apply the change
Qiming zhao
@chemzqm
My suggestion is simply use viml instead :p
Dustin van Schouwen
@djvs_gitlab
My coc.nvim typescript error popups stopped appearing on cursor navigation to it
What to do?
Qiming zhao
@chemzqm
Upgrade coc.nvim.
Dustin van Schouwen
@djvs_gitlab
Upgrade coc.nvim.
:pray: thank you
Works
Ritesh Harjani
@riteshharjani
image.png
for now this works.. will work on a proper one maybe sometime later.
this should give me the full line. will later work on a proper one which could instead give me function declaration from lsp side which will have more details.
Francisco Lopes
@oblitum
@chemzqm I ignore how watchman works, but I use it with Coc for the workspace features. Couldn't Coc provide a way or option for watchman not to scan the home folder. I have my home dir under git, but I don't track everything that there's in it, just a handful of files, and set git config status.showUntrackedFiles no. After that coc.nvim fix that made lsp
servers stop scanning the whole home, I only have this watchman issue left now regarding home scan.
s/folder./folder\?/
I mean, as of now, editing random files from home, or just starting nvim cause it to launch watchman to scan home. It's not a very user facing issue, because the scan happens behind the scenes, it's cached, and not much perceptible, but nonetheless it's worthless. Memory usage is noticeable.
Francisco Lopes
@oblitum
weird... it seems after watchman watch-del-all, it either stopped scanning home for now, or just keeps silently indexing it for a long time. It stopped being listed...
Qiming zhao
@chemzqm

Couldn't Coc provide a way or option for watchman not to scan the home folder.

Home should be ignored by coc.nvim, but there could be something else casue watchman scan your home.

Francisco Lopes
@oblitum
I wonder whether that's related to coc-snippets
because it's the sole thing that shows up in status messages when I start nvim from home without any file.
Qiming zhao
@chemzqm
Watchman could scan your home when there is specific files there.
Francisco Lopes
@oblitum
I just ignore which
:/
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