[UNB] Improve CMake Plugin
There's a CMake tools plugin for kate already, but it does not takes in consideration Language Server Protocols.
If a user wants to use Kate and develop in C++ - with cmake, the only way that this user can have Code Completion is by triggering a cmake command to generate a file named compile_commands.json
, this is done by the following command line call:
cmake $build_folder -DEXPORT_COMPILE_COMMANDS=ON
Initially, the plugin should check for the existence of this file on the build directory, and a button to generate the compile_commands.json file if it does not exist. The plugin should also copy and keep in sync the compile_commands.json file from the build directory to the source directory, so that the LSP can work.
For:
- Language Server Protocol
- CMake
- Plugins
Edited by Tomaz Canabrava