From abaca67308a037f54f16640a13134ee56f5ebd90 Mon Sep 17 00:00:00 2001 From: zolinthecow Date: Wed, 7 May 2025 03:26:59 -0700 Subject: [PATCH] clangd to use g++ --- lua/colinzhao/lazy/lsp.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/colinzhao/lazy/lsp.lua b/lua/colinzhao/lazy/lsp.lua index 1f83b700..5385c549 100644 --- a/lua/colinzhao/lazy/lsp.lua +++ b/lua/colinzhao/lazy/lsp.lua @@ -135,7 +135,13 @@ return { -- LSP Configuration & Plugins -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { ocamllsp = {}, - clangd = {}, + clangd = { + cmd = { + 'clangd', + '--query-driver=/opt/homebrew/bin/g++-14,/opt/homebrew/bin/gcc-14', + '--header-insertion=never', + }, + }, bashls = {}, gopls = {}, pyright = {