feat: add cmp sources
parent
a38042d73e
commit
e6fdffe1ce
@ -0,0 +1,12 @@
|
||||
return {
|
||||
'hrsh7th/cmp-copilot',
|
||||
config = function()
|
||||
local cmp = require 'cmp'
|
||||
local config = cmp.get_config()
|
||||
table.insert(config.sources, {
|
||||
name = 'copilot',
|
||||
option = {},
|
||||
})
|
||||
cmp.setup(config)
|
||||
end,
|
||||
}
|
@ -1,3 +1,12 @@
|
||||
return {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
config = function()
|
||||
local cmp = require 'cmp'
|
||||
local config = cmp.get_config()
|
||||
table.insert(config.sources, {
|
||||
name = 'nvim_lsp',
|
||||
option = {},
|
||||
})
|
||||
cmp.setup(config)
|
||||
end,
|
||||
}
|
||||
|
@ -1,3 +1,12 @@
|
||||
return {
|
||||
"hrsh7th/cmp-path"
|
||||
}
|
||||
'hrsh7th/cmp-path',
|
||||
config = function()
|
||||
local cmp = require 'cmp'
|
||||
local config = cmp.get_config()
|
||||
table.insert(config.sources, {
|
||||
name = 'path',
|
||||
option = {},
|
||||
})
|
||||
cmp.setup(config)
|
||||
end,
|
||||
}
|
||||
|
@ -1,5 +1,14 @@
|
||||
return {
|
||||
"tzachar/cmp-tabnine",
|
||||
build = "./install.sh",
|
||||
dependencies = {"hrsh7th/nvim-cmp"}
|
||||
}
|
||||
'tzachar/cmp-tabnine',
|
||||
build = './install.sh',
|
||||
dependencies = { 'hrsh7th/nvim-cmp' },
|
||||
config = function()
|
||||
local cmp = require 'cmp'
|
||||
local config = cmp.get_config()
|
||||
table.insert(config.sources, {
|
||||
name = 'tabnine',
|
||||
option = {},
|
||||
})
|
||||
cmp.setup(config)
|
||||
end,
|
||||
}
|
||||
|
Loading…
Reference in New Issue