感觉linux是与我无缘了,我现在想想能不能在windows下面把emacs lsp-mode玩转
用cmake+ninjia/nmake CMakeLists.txt里添加
if(NOT MSVC_IDE)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_custom_target(
clangd ALL
${CMAKE_COMMAND} -E copy_if_different
${CMAKE_BINARY_DIR}/compile_commands.json
${CMAKE_SOURCE_DIR}
)
add_dependencies(你的项目 clangd)
endif()