Add cmp-path to nvim-cmp
This commit is contained in:
parent
b5cf22aeb5
commit
3c65320454
7
init.lua
7
init.lua
|
@ -33,7 +33,7 @@ require('packer').startup(function(use)
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
requires = {
|
requires = {
|
||||||
'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-buffer', 'L3MON4D3/LuaSnip',
|
'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-buffer', 'L3MON4D3/LuaSnip',
|
||||||
'saadparwaiz1/cmp_luasnip'
|
'saadparwaiz1/cmp_luasnip', 'hrsh7th/cmp-path'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -411,7 +411,10 @@ cmp.setup {
|
||||||
end
|
end
|
||||||
end, {'i', 's'})
|
end, {'i', 's'})
|
||||||
},
|
},
|
||||||
sources = {{name = 'nvim_lsp'}, {name = 'luasnip'}, {name = 'buffer'}}
|
sources = {
|
||||||
|
{name = 'nvim_lsp'}, {name = 'luasnip'}, {name = 'buffer'},
|
||||||
|
{name = 'path'}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
|
|
Loading…
Reference in New Issue