Fixed path to compile_commands.json

This commit is contained in:
Oliver Hartmann 2022-02-10 18:56:04 +01:00
parent 3209e01c99
commit 3a700044c4

View File

@ -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)