Skip to content

Commit fc9742f

Browse files
nathom-ariclaude
andcommitted
Add --query-driver to clangd for system include paths
Allows clangd to find system headers (e.g. GStreamer on Jetson) by querying the system compiler. Falls back gracefully when the drivers don't exist. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6e8125a commit fc9742f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lua/plugins/development.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ return {
123123
end
124124

125125
if nixCats("lang-c") then
126-
servers.clangd = {}
126+
servers.clangd = {
127+
cmd = {
128+
"clangd",
129+
"--query-driver=/usr/bin/gcc,/usr/bin/g++,/usr/bin/cc,/usr/bin/c++",
130+
},
131+
}
127132
end
128133

129134
if isNixCats then

0 commit comments

Comments
 (0)