From 3a700044c43a10c992d1b037e20d844824cfcb5d Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 10 Feb 2022 18:56:04 +0100 Subject: [PATCH] Fixed path to compile_commands.json --- lua/my_lspinstall.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)