-
Notifications
You must be signed in to change notification settings - Fork 19
Integration with Coc? #8
Comments
I'm sorry to say, but this does not support CoC. I have 0 experience with CoC. How easy is it to ask CoC for code actions at the current cursor location? 🤔 |
No problem at all :-). I have no idea either, I was just wondering if it was already done. I could add this to my never-ending list of TODOs but... :-(. I'm converting over to native LSP anyway, I just need to make Telescope as fast as FZF to complete the switch . |
Haha okay. Let's see if more users want this. I don't need it, but it looks like it is fairly easy to add. Depending on how easy CoC is to use. Though I would rather not like to add CoC to my local setup to test it. So I appreciate if someone would open a PR 😬 |
It would be really great if this plugin could support CoC as a source. It should be be pretty easy to get a code action from CoC. There's a |
Hey guys, check this https://github.com/xiyaowong/coc-code-action-menu |
@xiyaowong Thanks! @weilbith Would you be open to integrating @xiyaowong's work into this repo? Seems like a shame to keep two different plugins that are likely to get out of sync at some point |
I'm honestly confused about @xiyaowong. Why isn't he just doing this in a feature branch and open a PR for it. Just discussing the solution together. That's usually how open source projects work. Yes therefore you have to fork the repo. But why rename it, don't open a PR and advertise it? PS: @xiyaowong if your intention was to first have others test it and you planned to open a PR soon, you can ignore the above. I'm just confused right now. 🤷🏻♂️ |
I am very happy to contribute, it requires adding a settings feature, so it may modify many codes, I also see you have a pr about new feature , I'm waiting for your work to be merged, then reorganize them |
Thanks for replying. 😊 |
It would be very helpful if someone could tell me if CoC it's client implementation sets the capability to resolve actions. And if so, if it does resolve them automatically when requesting the actions. Though this is kinda against the idea of resolvable actions but "necessary" for this plugin to preview as much metadata as possible. |
Hey there, I'm not sure if this is the right thread, but I've been struggling to make @xiyaowong's plugin work. Is it even possible using Plug ? -- I dont really feel like changing my whole plugin management env' to packer just for this, honestly. I can't seem to understand when/where/how I'm supposed to make the menu require the plugin, since its README says "in code-action-menu's config" and code-action-menu's README basically says "there is no actual config file yet" This is how they're installed for now, and reading Plug's docs there is no real dependency management, which seems to be an issue in how I should get the CoC extension to work... 🤔 |
try |
That didn't work. |
put lua require"coc-code-action-menu" to the last line in your config |
I had no idea you could run Lua right inside Despite my abysmal knowledge of Lua, I found a way to require the module only if it exists. Here's what I did, I added this line before the return in local _hasCCAM, _ccam = pcall(require, "coc-code-action-menu") Simple and works. Now I have other issues, apparently the pop-up window blends into what's behind it, I see characters from under the window appear inside it. I'm also having the issues described in #52 but they're not for this thread. |
Hi there - this looks great. Does it only integrate with the native LSP? If I run code actions from Coc I get a bunch but if I run
CodeActionMenu
without changing the cursor I get "No code actions available!"The text was updated successfully, but these errors were encountered: