nvim: reqrite completion config
This commit is contained in:
parent
e573868c18
commit
f8e686a334
|
@ -1,12 +1,8 @@
|
|||
require('my/plugins')
|
||||
|
||||
packer.use 'https://github.com/hrsh7th/cmp-nvim-lsp'
|
||||
packer.use 'https://github.com/hrsh7th/cmp-buffer'
|
||||
packer.use 'https://github.com/hrsh7th/cmp-path'
|
||||
packer.use 'https://github.com/hrsh7th/cmp-cmdline'
|
||||
packer.use 'https://github.com/hrsh7th/cmp-nvim-lua'
|
||||
packer.use {
|
||||
'https://github.com/hrsh7th/nvim-cmp',
|
||||
requires = 'https://github.com/L3MON4D3/LuaSnip',
|
||||
config = function()
|
||||
local cmp = require'cmp'
|
||||
if cmp == nil then
|
||||
|
@ -75,3 +71,36 @@ packer.use {
|
|||
})
|
||||
end
|
||||
}
|
||||
|
||||
packer.use {
|
||||
'https://github.com/hrsh7th/cmp-nvim-lsp',
|
||||
requires = 'https://github.com/hrsh7th/nvim-cmp',
|
||||
config = function()
|
||||
require'cmp'.setup {
|
||||
sources = {
|
||||
name = 'nvim_lsp'
|
||||
}
|
||||
}
|
||||
end
|
||||
}
|
||||
|
||||
packer.use {
|
||||
'https://github.com/hrsh7th/cmp-buffer',
|
||||
requires = 'https://github.com/hrsh7th/nvim-cmp',
|
||||
}
|
||||
|
||||
packer.use {
|
||||
'https://github.com/hrsh7th/cmp-path',
|
||||
requires = 'https://github.com/hrsh7th/nvim-cmp',
|
||||
}
|
||||
|
||||
packer.use {
|
||||
'https://github.com/hrsh7th/cmp-cmdline',
|
||||
requires = 'https://github.com/hrsh7th/nvim-cmp',
|
||||
}
|
||||
|
||||
-- packer.use {
|
||||
-- 'https://github.com/hrsh7th/cmp-nvim-lua',
|
||||
-- requires = 'https://github.com/hrsh7th/nvim-cmp',
|
||||
-- }
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user