d16ffabcfd
first commit of Refactor handle require errors move config from other places to proper files don't create a pseudo config function for no reason https://github.com/siduck76/NvChad/pull/156#issuecomment-881453546
32 lines
582 B
Lua
32 lines
582 B
Lua
local compe
|
|
if
|
|
not pcall(
|
|
function()
|
|
compe = require "compe"
|
|
end
|
|
)
|
|
then
|
|
return
|
|
end
|
|
|
|
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
|
|
}
|
|
}
|