sourcegraph / sg.nvim

Experimental Sourcegraph + Cody plugin for Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sg.nvim works with LunarVim

aultac opened this issue · comments

I'm somewhat new to the neovim world, but after some work this morning I got cody working with Lunarvim. In case anyone else wants to do that, they need to put this in their ~/.config/lvim/config.lua file:

lvim.plugins = {
  {
    "sourcegraph/sg.nvim",
    dependencies = { "nvim-lua/plenary.nvim" },

    -- If you have a recent version of lazy.nvim, you don't need to add this!
    build = "nvim -l build/init.lua",
  },
}
require("sg").setup { }
-- Add cody to the list of sources
lvim.builtin.cmp.sources = {
  { name = "cody" },
  unpack(lvim.builtin.cmp.sources) -- Add the existing sources after the new one
}```

Hey @aultac, thanks! Brought this to the attention of the team, trying to see if there's a good way to capture those config bits in the right place.