feat(vim): finally commit the copilot config
I have been using this for quite a while now. This add the copilot plugin and the intergration with nvim-cmp
This commit is contained in:
parent
36c9832b9d
commit
540b5b0c72
2 changed files with 11 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ local start_plugins = {
|
|||
["vim-rhubarb"] = { url = "https://github.com/tpope/vim-rhubarb.git" },
|
||||
["conjure"] = { url = "https://github.com/Olical/conjure.git" },
|
||||
["cmp-cmdline"] = { url = "https://github.com/hrsh7th/cmp-cmdline.git", revision = "main" },
|
||||
["copilot"] = { url = "https://github.com/zbirenbaum/copilot.lua.git" },
|
||||
["copilot-cmp"] = { url = "https://github.com/zbirenbaum/copilot-cmp.git" },
|
||||
}
|
||||
|
||||
local opt_plugins = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,14 @@
|
|||
local cmp = require'cmp'
|
||||
local luasnip = require'luasnip'
|
||||
|
||||
require("copilot").setup({
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
})
|
||||
|
||||
require("copilot_cmp").setup()
|
||||
|
||||
|
||||
local icons = {
|
||||
Text = "",
|
||||
Method = "",
|
||||
|
|
@ -55,6 +63,7 @@ cmp.setup({
|
|||
}),
|
||||
sources = {
|
||||
{ name = "luasnip" },
|
||||
{ name = "copilot" },
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'buffer' },
|
||||
{ name = 'path' },
|
||||
|
|
|
|||
Loading…
Reference in a new issue