tuning startup time

This commit is contained in:
asep komarudin 2023-02-09 13:22:54 +07:00
parent e5686e4858
commit 368cce2a27
4 changed files with 82 additions and 32 deletions

View file

@ -139,3 +139,26 @@ cmp.setup({
native_menu = false,
},
})
-- for cmd line
cmp.setup.cmdline("/", {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = "buffer" },
},
})
-- `:` cmdline setup.
cmp.setup.cmdline(":", {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "path" },
}, {
{
name = "cmdline",
option = {
ignore_cmds = { "Man", "!" },
},
},
}),
})