diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-07-14T19·34-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-07-14T19·38+0000 |
commit | 8a7f0beb861d3aa2336625da90e13c4fb881c218 (patch) | |
tree | fdc1c254d8827f888987e9f2b368f0024fd375c2 /users/glittershark/emacs.d/nix-clangd.sh | |
parent | d3ad338726b78915ee79e4a7d007daf3129e70f1 (diff) |
feat(gs/emacs): Configure for C++ development r/1293
Vendor the google-c-style module, and configure lsp-mode to run the clangd wrapper script for hacking on tvlnix Change-Id: I8d1ac2f30c9708501e0840ef3d53fe479bc39fa7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1166 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'users/glittershark/emacs.d/nix-clangd.sh')
-rwxr-xr-x | users/glittershark/emacs.d/nix-clangd.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/users/glittershark/emacs.d/nix-clangd.sh b/users/glittershark/emacs.d/nix-clangd.sh new file mode 100755 index 000000000000..0df209c2eb99 --- /dev/null +++ b/users/glittershark/emacs.d/nix-clangd.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -euo pipefail + +CLANGD_FLAGS=--compile-commands-dir=/home/grfn/builds/tazjix \ + nix-shell /home/grfn/code/depot \ + -A third_party.nix \ + --run nix-clangd |