sg.nvim icon indicating copy to clipboard operation
sg.nvim copied to clipboard

Support Coc.nvim

Open aemonge opened this issue 1 year ago • 3 comments

Is it possible to support https://github.com/neoclide/coc.nvim ?

aemonge avatar May 22 '24 14:05 aemonge

I'll look into it!

tjdevries avatar May 24 '24 16:05 tjdevries

Any chance you could try out: https://github.com/sourcegraph/sg.nvim/pull/242

I tried it locally and it seems to be working for me, but I haven't used coc.nvim in a long time!

tjdevries avatar May 25 '24 18:05 tjdevries

I've installed as follows:


local M = {
    "sourcegraph/sg.nvim",
    dependencies = {
        "nvim-lua/plenary.nvim",
        "nvim-telescope/telescope.nvim",
    },
    branch = "coc-nvim-support",
    -- build = ":SourcegraphDownloadBinaries<CR>"
}

But I don't know how to map a manual trigger for completion <C-a> or how to start the chat. I don't see any commands named "cody" or "sourgraph" in plugins, nor coc.commands

Issus with health might be versions of nvim ?


sg: require("sg.health").check()

sg.nvim report ~
- Machine: x86_64, sysname: Linux
- ERROR Invalid nvim version. Upgrade to at least 0.10.0. Current version: table: 0x7efcbcddfca0
- ERROR Invalid nvim version. Upgrade to at least 0.9.4 or nightly

this is my version:

 NVIM v0.9.5 
 Build type: Release 
 LuaJIT 2.1.1713773202 
 system vimrc file: "$VIM/sysinit.vim" 
 fall-back for $VIM: "/usr/share/nvim" 
 Run :checkhealth for more info 

1 1 2 2

aemonge avatar May 27 '24 09:05 aemonge