1
0
Fork 0

nvim: completion: fix no workie after repeated compile

I re-arranged the dependencies. Now it looks more like the example in
the readme.
This commit is contained in:
tastytea 2022-08-12 18:54:03 +02:00
parent f95274fb3e
commit 1bf1458f4e
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 8 additions and 35 deletions

View File

@ -3,6 +3,14 @@ require('my/plugins')
packer.use {
'https://github.com/hrsh7th/nvim-cmp',
requires = {
{
'https://github.com/hrsh7th/cmp-nvim-lsp',
requires = 'https://github.com/neovim/nvim-lspconfig';
},
'https://github.com/hrsh7th/cmp-buffer',
'https://github.com/hrsh7th/cmp-path',
'https://github.com/hrsh7th/cmp-cmdline',
-- 'https://github.com/hrsh7th/cmp-nvim-lua',
{
'https://github.com/saadparwaiz1/cmp_luasnip',
requires = 'https://github.com/L3MON4D3/LuaSnip'
@ -76,35 +84,3 @@ 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',
-- }

View File

@ -4,9 +4,6 @@ require('my/completion')
packer.use {
'https://github.com/neovim/nvim-lspconfig',
requires = {
'https://github.com/hrsh7th/cmp-nvim-lsp'
},
config = function()
map('n', '<f5>', vim.diagnostic.goto_prev)
map('n', '<f6>', vim.diagnostic.goto_next)