cmp autocomplete cleanup

This commit is contained in:
Henrik Bakken
2021-11-29 16:56:23 +01:00
parent 038672104b
commit 544f39a634
+6 -13
View File
@@ -580,19 +580,11 @@ require("packer").startup {
}) })
}, },
sources = { sources = {
{name = "nvim_lsp"}, {name = "buffer"} {name = "nvim_lsp"},
-- { name = "path" }, {name = "buffer"},
-- { name = "nvim_lua" }, {name = "path"},
{name = "nvim_lua"},
}, },
sorting = {
comparators = {
cmp.config.compare.exact, cmp.config.compare.offset,
cmp.config.compare.score,
cmp.config.compare.sort_text,
cmp.config.compare.kind, cmp.config.compare.length,
cmp.config.compare.order
}
}
}) })
end end
} }
@@ -781,7 +773,8 @@ require("packer").startup {
analysis = { analysis = {
diagnosticMode = "workspace", diagnosticMode = "workspace",
logLevel = "Warning", logLevel = "Warning",
typeCheckingMode = "basic" typeCheckingMode = "basic",
autoImportCompletions = false,
} }
} }
} }