use words=all rather than words=buffer for default insert word completion

This commit is contained in:
Maxime Coste 2014-05-11 12:53:08 +01:00
parent daac1698d6
commit 5e47c503d9

View File

@ -154,7 +154,7 @@ GlobalOptions::GlobalOptions()
declare_option("path", "path to consider when trying to find a file", declare_option("path", "path to consider when trying to find a file",
std::vector<String>({ "./", "/usr/include" })); std::vector<String>({ "./", "/usr/include" }));
declare_option("completers", "insert mode completers to execute.", declare_option("completers", "insert mode completers to execute.",
std::vector<String>({"filename", "word=buffer"}), std::vector<String>({"filename", "word=all"}),
OptionFlags::None, OptionFlags::None,
OptionChecker<std::vector<String>>([](const std::vector<String>& s) { OptionChecker<std::vector<String>>([](const std::vector<String>& s) {
static const auto values = {"word=buffer", "word=all", "filename"}; static const auto values = {"word=buffer", "word=all", "filename"};