2021-07-15 16:43:17 +01:00
|
|
|
local compe
|
|
|
|
if
|
|
|
|
not pcall(
|
|
|
|
function()
|
|
|
|
compe = require "compe"
|
|
|
|
end
|
2021-06-26 13:50:25 +01:00
|
|
|
)
|
2021-07-15 16:43:17 +01:00
|
|
|
then
|
|
|
|
return
|
2021-06-26 13:50:25 +01:00
|
|
|
end
|
|
|
|
|
2021-07-15 16:43:17 +01:00
|
|
|
compe.setup {
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|