1
0
Fork 0

nvim: reqrite completion config

This commit is contained in:
tastytea 2022-08-12 15:21:26 +02:00
parent e573868c18
commit f8e686a334
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 34 additions and 5 deletions

View File

@ -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',
-- }