Support functions in separated cmake modules
Examples:
find_package_handle_standard_argsinFindPackageHandleStandardArgsfind_package_messageinFindPackageMessagecmake_dependent_optioninCMakeDependentOption
This language server should also complete function-calls previously defined with function() ... endfunction().
Short answer: The completion of the user defined functions is difficult. I'm not planning to support it at the moment.
Long answer: CMake is not providing any API to get function information. To get complete information of functions, parsing CMake scripts and simulating them are needed. It is roughly equivalent to making a copy of CMake. I gave up on it and took another approach which is to parsing the CMake document. It provides limited but useful information of the builtin functions. Therefore, the current implementation of LSP cannot handle user-defined function.