Merge pull request #1 from thomasmarcel/feature/copilot-cmp
Feature/copilot cmp
This commit is contained in:
commit
aa4d90076b
|
@ -1,11 +1,11 @@
|
||||||
return {
|
return {
|
||||||
'hrsh7th/cmp-copilot',
|
'hrsh7th/cmp-copilot',
|
||||||
|
dependencies = { 'zbirenbaum/copilot.lua', 'github/copilot.vim' },
|
||||||
config = function()
|
config = function()
|
||||||
local cmp = require 'cmp'
|
local cmp = require 'cmp'
|
||||||
local config = cmp.get_config()
|
local config = cmp.get_config()
|
||||||
table.insert(config.sources, {
|
table.insert(config.sources, {
|
||||||
name = 'copilot',
|
name = 'copilot',
|
||||||
option = {},
|
|
||||||
})
|
})
|
||||||
cmp.setup(config)
|
cmp.setup(config)
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -5,7 +5,6 @@ return {
|
||||||
local config = cmp.get_config()
|
local config = cmp.get_config()
|
||||||
table.insert(config.sources, {
|
table.insert(config.sources, {
|
||||||
name = 'nvim_lsp',
|
name = 'nvim_lsp',
|
||||||
option = {},
|
|
||||||
})
|
})
|
||||||
cmp.setup(config)
|
cmp.setup(config)
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
return {
|
||||||
|
'zbirenbaum/copilot-cmp',
|
||||||
|
dependencies = { 'zbirenbaum/copilot.lua', 'github/copilot.vim' },
|
||||||
|
config = function()
|
||||||
|
require('copilot_cmp').setup()
|
||||||
|
local cmp = require 'cmp'
|
||||||
|
local config = cmp.get_config()
|
||||||
|
table.insert(config.sources, {
|
||||||
|
name = 'copilot',
|
||||||
|
})
|
||||||
|
cmp.setup(config)
|
||||||
|
end,
|
||||||
|
}
|
Loading…
Reference in New Issue