lsp clangd config
This commit is contained in:
@@ -136,3 +136,15 @@
|
|||||||
=libfm= 官方已经修复了该问题,现在在 =libfm-1.3.1= 中再次出现该问题,解决
|
=libfm= 官方已经修复了该问题,现在在 =libfm-1.3.1= 中再次出现该问题,解决
|
||||||
办法就是在要安装 =libfm= 时,先安装 =libfm-1.2.5= ,然后通过升级的方式将
|
办法就是在要安装 =libfm= 时,先安装 =libfm-1.2.5= ,然后通过升级的方式将
|
||||||
=libfm= 升级到 =1.3.1= 版本即可。
|
=libfm= 升级到 =1.3.1= 版本即可。
|
||||||
|
|
||||||
|
* lsp clangd
|
||||||
|
配置 =clangd= 需要在项目根目录下创建一个 =compile_commands.json= 文件,
|
||||||
|
其模板如下所示:
|
||||||
|
#+begin_src json
|
||||||
|
[{
|
||||||
|
"directory": "project directory",
|
||||||
|
"command": "clang -g -pthread -I<header file directory>",
|
||||||
|
"file": "main.c"
|
||||||
|
}]
|
||||||
|
#+end_src
|
||||||
|
其中 =command= 参数中的 =-I= 可以有多个,表示从多个文件夹下导入头文件。
|
||||||
|
|||||||
Reference in New Issue
Block a user