Ghost text
This commit is contained in:
parent
e15fc0dfa7
commit
471e420829
|
@ -21,6 +21,11 @@ cmp.setup({
|
||||||
documentation = cmp.config.window.bordered(),
|
documentation = cmp.config.window.bordered(),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- experimental settings
|
||||||
|
experimental = {
|
||||||
|
ghost_text = {},
|
||||||
|
},
|
||||||
|
|
||||||
-- mapping
|
-- mapping
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
-- Shift+TAB to go to the Previous Suggested item
|
-- Shift+TAB to go to the Previous Suggested item
|
||||||
|
@ -45,15 +50,15 @@ cmp.setup({
|
||||||
|
|
||||||
-- installed sources for code suggestion
|
-- installed sources for code suggestion
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "ultisnips", keyword_length = 1 },
|
{ name = "ultisnips", keyword_length = 3 },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
{ name = "nvim_lsp", keyword_length = 1 },
|
{ name = "nvim_lsp", keyword_length = 2 },
|
||||||
{ name = "nvim_lsp_signature_help" },
|
{ name = "nvim_lsp_signature_help" },
|
||||||
{ name = "nvim_lua", keyword_length = 2 },
|
{ name = "nvim_lua", keyword_length = 2 },
|
||||||
{ name = "buffer", keyword_length = 1 },
|
{ name = "buffer", keyword_length = 1 },
|
||||||
{ name = "calc" },
|
{ name = "calc" },
|
||||||
{ name = "lua-latex-symbols", option = { cache = true } },
|
{ name = "lua-latex-symbols", option = { cache = true } },
|
||||||
{ name = "cmp_tabnine", keyword_length = 2 },
|
{ name = "cmp_tabnine", keyword_length = 6 },
|
||||||
}),
|
}),
|
||||||
|
|
||||||
-- add formatting of the different sources
|
-- add formatting of the different sources
|
||||||
|
|
Loading…
Reference in New Issue