Add .config/nvim/.luarc.json
Update .config/nvim/lazyvim.json Update .config/nvim/lua/config/lazy.lua Update .config/nvim/lua/plugins/copilot.lua Update .config/nvim/lua/plugins/go.lua Update .config/nvim/lua/plugins/nvim-cmp.lua Add .config/nvim/lua/plugins/sourcegraph-copilot.lua
This commit is contained in:
@@ -10,14 +10,13 @@ vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- add LazyVim and import its plugins
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
--{ import = "lazyvim.plugins.extras.editor.flash" },
|
||||
--{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||
{ import = "lazyvim.plugins.extras.util.mini-hipatterns" },
|
||||
{ import = "lazyvim.plugins.extras.util.project" },
|
||||
{ import = "lazyvim.plugins.extras.dap.core" },
|
||||
|
||||
|
||||
-- import any extras modules here
|
||||
-- { import = "lazyvim.plugins.extras.lang.typescript" },
|
||||
-- { import = "lazyvim.plugins.extras.lang.json" },
|
||||
|
@@ -1,12 +1,12 @@
|
||||
return {
|
||||
"zbirenbaum/copilot.lua",
|
||||
enabled = false,
|
||||
enabled = true,
|
||||
cmd = "Copilot",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("copilot").setup({
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
suggestion = { enabled = true },
|
||||
panel = { enabled = true, auto_refresh = true },
|
||||
|
||||
--suggestion = {
|
||||
-- auto_trigger = true,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
return {
|
||||
"ray-x/go.nvim",
|
||||
dependencies = { -- optional packages
|
||||
dependencies = { -- optional packages
|
||||
"ray-x/guihua.lua",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
@@ -8,8 +8,7 @@ return {
|
||||
config = function()
|
||||
require("go").setup()
|
||||
end,
|
||||
event = {"CmdlineEnter"},
|
||||
ft = {"go", 'gomod'},
|
||||
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
|
||||
|
||||
event = { "CmdlineEnter" },
|
||||
ft = { "go", "gomod" },
|
||||
build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries
|
||||
}
|
||||
|
@@ -2,8 +2,11 @@ return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
opts = function(_, opts)
|
||||
local cmp = require("cmp")
|
||||
opts.sources = cmp.config.sources(vim.list_extend(opts.sources, { { name = "copilot", group_index = 2 } }))
|
||||
opts.sources = cmp.config.sources(vim.list_extend(opts.sources, {
|
||||
{ name = "copilot", group_index = 2 },
|
||||
{ name = "cody", group_index = 2 },
|
||||
}))
|
||||
|
||||
return opts
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
13
dot_config/nvim/lua/plugins/sourcegraph-copilot.lua
Normal file
13
dot_config/nvim/lua/plugins/sourcegraph-copilot.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
{
|
||||
"sourcegraph/sg.nvim",
|
||||
enabled = false,
|
||||
dependencies = { "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" },
|
||||
|
||||
-- If you have a recent version of lazy.nvim, you don't need to add this!
|
||||
-- build = "nvim -l build/init.lua",
|
||||
config = function()
|
||||
require("sg").setup({})
|
||||
end,
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user