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:
parent
f95274fb3e
commit
1bf1458f4e
|
@ -3,6 +3,14 @@ require('my/plugins')
|
||||||
packer.use {
|
packer.use {
|
||||||
'https://github.com/hrsh7th/nvim-cmp',
|
'https://github.com/hrsh7th/nvim-cmp',
|
||||||
requires = {
|
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',
|
'https://github.com/saadparwaiz1/cmp_luasnip',
|
||||||
requires = 'https://github.com/L3MON4D3/LuaSnip'
|
requires = 'https://github.com/L3MON4D3/LuaSnip'
|
||||||
|
@ -76,35 +84,3 @@ packer.use {
|
||||||
})
|
})
|
||||||
end
|
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',
|
|
||||||
-- }
|
|
||||||
|
|
|
@ -4,9 +4,6 @@ require('my/completion')
|
||||||
|
|
||||||
packer.use {
|
packer.use {
|
||||||
'https://github.com/neovim/nvim-lspconfig',
|
'https://github.com/neovim/nvim-lspconfig',
|
||||||
requires = {
|
|
||||||
'https://github.com/hrsh7th/cmp-nvim-lsp'
|
|
||||||
},
|
|
||||||
config = function()
|
config = function()
|
||||||
map('n', '<f5>', vim.diagnostic.goto_prev)
|
map('n', '<f5>', vim.diagnostic.goto_prev)
|
||||||
map('n', '<f6>', vim.diagnostic.goto_next)
|
map('n', '<f6>', vim.diagnostic.goto_next)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user