diff --git a/lua/my_lspinstall.lua b/lua/my_lspinstall.lua index 92efc1f..d63e083 100644 --- a/lua/my_lspinstall.lua +++ b/lua/my_lspinstall.lua @@ -110,9 +110,9 @@ lsp_installer.on_server_ready(function(server) } -- (optional) Customize the options passed to the server - -- if server.name == "tsserver" then - -- opts.root_dir = function() ... end - -- end + if server.name == "clangd" then + opts.cmd = { "clangd" , "--compile-commands-dir=build_nvim"} + end -- This setup() function is exactly the same as lspconfig's setup function (:help lspconfig-quickstart) server:setup(opts)