summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-29 23:22:19 +0800
committerruki <[email protected]>2022-12-29 23:22:19 +0800
commit71c9ba0af2b3839aec49410433d8ff00972f08ad (patch)
tree53ab80e2e7be0c13e7eb85e1a24457ee9b623507 /xmake/plugins/project/xmake.lua
parent46a6064fcc6edb0c792315a8a7f62cf2b5f5dff8 (diff)
add lsp hint for compile_commands
Diffstat (limited to 'xmake/plugins/project/xmake.lua')
-rw-r--r--xmake/plugins/project/xmake.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/plugins/project/xmake.lua b/xmake/plugins/project/xmake.lua
index 794cd62af..34cc5fe07 100644
--- a/xmake/plugins/project/xmake.lua
+++ b/xmake/plugins/project/xmake.lua
@@ -58,9 +58,13 @@ task("project")
, {'m', "modes", "kv" , nil , "Set the project modes."
, " e.g. "
, " - xmake project -k vsxmake -m \"release,debug\"" }
- , {'a', "archs", "kv" , nil , "Set the project archs."
+ , {'a', "archs", "kv" , nil , "Set the project archs."
, " e.g. "
, " - xmake project -k vsxmake -a \"x86,x64\"" }
+ , {nil, "lsp", "kv" , nil , "Set the LSP backend for compile_commands."
+ , " e.g. "
+ , " - xmake project -k compile_commands --lsp=clangd"
+ , values = {"clangd", "cpptools", "ccls"}}
, {nil, "outputdir", "v" , "." , "Set the output directory." }
}
}