about summary refs log tree commit diff
path: root/users/grfn/emacs.d/nix-clangd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'users/grfn/emacs.d/nix-clangd.sh')
-rwxr-xr-xusers/grfn/emacs.d/nix-clangd.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/grfn/emacs.d/nix-clangd.sh b/users/grfn/emacs.d/nix-clangd.sh
new file mode 100755
index 000000000000..16f6252d8b27
--- /dev/null
+++ b/users/grfn/emacs.d/nix-clangd.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+CLANGD_FLAGS=--compile-commands-dir=/home/grfn/builds/tvix \
+    nix-shell /home/grfn/code/depot \
+    -A third_party.nix \
+    --run nix-clangd