Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sg.nvim works with LunarVim #228

Open
aultac opened this issue Mar 30, 2024 · 1 comment
Open

sg.nvim works with LunarVim #228

aultac opened this issue Mar 30, 2024 · 1 comment

Comments

@aultac
Copy link

aultac commented Mar 30, 2024

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
}```
@jhchabran
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants