2021-07-17 11:14:52 +00:00
|
|
|
local present, compe = pcall(require, "compe")
|
|
|
|
if not present then
|
2021-08-16 07:49:09 +00:00
|
|
|
return
|
2021-06-26 12:50:25 +00:00
|
|
|
end
|
|
|
|
|
2021-07-15 15:43:17 +00:00
|
|
|
compe.setup {
|
2021-08-16 07:49:09 +00:00
|
|
|
enabled = true,
|
|
|
|
autocomplete = true,
|
|
|
|
debug = false,
|
|
|
|
min_length = 1,
|
|
|
|
preselect = "enable",
|
|
|
|
throttle_time = 80,
|
|
|
|
source_timeout = 200,
|
|
|
|
incomplete_delay = 400,
|
|
|
|
max_abbr_width = 100,
|
|
|
|
max_kind_width = 100,
|
|
|
|
max_menu_width = 100,
|
|
|
|
documentation = true,
|
|
|
|
source = {
|
|
|
|
buffer = { kind = "", true },
|
|
|
|
luasnip = { kind = "", true },
|
|
|
|
nvim_lsp = true,
|
|
|
|
nvim_lua = true,
|
|
|
|
},
|
2021-07-15 15:43:17 +00:00
|
|
|
}
|