nixpkgs/home/programs/neovim/plugins/cmp.lua
Daniel Siepmann 30db8651a7
Improve cmp and lsp integration in Neovim
Use omni after more specific completions.
Add buffer to completion, not as fallback. I often wanna complete from
current buffer.

Keep syntax consistent when requiring lua modules.
2022-03-23 08:23:10 +01:00

17 lines
303 B
Lua

require('cmp').setup({
view = {
entries = 'native',
},
experimental = {
ghost_text = true,
},
sources = require('cmp').config.sources({
{ name = 'nvim_lsp' },
{ name = 'nvim_lua' },
{ name = 'omni' },
{ name = 'buffer' },
}),
})